base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON().
[chromium-blink-merge.git] / mojo / services / network / network_context.h
blob19245f4b584e7376f401dd0f6c1345bf6c888efb
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.
5 #ifndef MOJO_SERVICES_NETWORK_NETWORK_CONTEXT_H_
6 #define MOJO_SERVICES_NETWORK_NETWORK_CONTEXT_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
11 namespace base {
12 class FilePath;
15 namespace net {
16 class URLRequestContext;
19 namespace mojo {
21 class NetworkContext {
22 public:
23 explicit NetworkContext(const base::FilePath& base_path);
24 ~NetworkContext();
26 net::URLRequestContext* url_request_context() {
27 return url_request_context_.get();
30 private:
31 scoped_ptr<net::URLRequestContext> url_request_context_;
33 DISALLOW_COPY_AND_ASSIGN(NetworkContext);
36 } // namespace mojo
38 #endif // MOJO_SERVICES_NETWORK_NETWORK_CONTEXT_H_