proxygen
Service.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree. An additional grant
7  * of patent rights can be found in the PATENTS file in the same directory.
8  *
9  */
11 
14 
15 namespace proxygen {
16 
18 }
19 
21 }
22 
23 void Service::addServiceWorker(std::unique_ptr<ServiceWorker> worker,
24  RequestWorker* reqWorker) {
25  reqWorker->addServiceWorker(this, worker.get());
26  workers_.emplace_back(std::move(worker));
27 }
28 
30  workers_.clear();
31 }
32 
33 } // proxygen
virtual ~Service()
Definition: Service.cpp:20
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
void addServiceWorker(Service *service, ServiceWorker *sw)
Definition: RequestWorker.h:57
std::list< std::unique_ptr< ServiceWorker > > workers_
Definition: Service.h:178
void addServiceWorker(std::unique_ptr< ServiceWorker > worker, RequestWorker *reqWorker)
Definition: Service.cpp:23
void clearServiceWorkers()
Definition: Service.cpp:29