1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef MOJO_SERVICES_NETWORK_NETWORK_CONTEXT_H_ 6 #define MOJO_SERVICES_NETWORK_NETWORK_CONTEXT_H_ 7 8 #include "base/macros.h" 9 #include "base/memory/scoped_ptr.h" 10 11 namespace base { 12 class FilePath; 13 } 14 15 namespace net { 16 class URLRequestContext; 17 } 18 19 namespace mojo { 20 21 class NetworkContext { 22 public: 23 explicit NetworkContext(const base::FilePath& base_path); 24 ~NetworkContext(); 25 url_request_context()26 net::URLRequestContext* url_request_context() { 27 return url_request_context_.get(); 28 } 29 30 private: 31 scoped_ptr<net::URLRequestContext> url_request_context_; 32 33 DISALLOW_COPY_AND_ASSIGN(NetworkContext); 34 }; 35 36 } // namespace mojo 37 38 #endif // MOJO_SERVICES_NETWORK_NETWORK_CONTEXT_H_ 39