OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/shell/browser/shell_browser_context.h" | 5 #include "content/shell/browser/shell_browser_context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { | 42 virtual net::URLRequestContext* GetRequestContext() OVERRIDE { |
43 CHECK(getter_); | 43 CHECK(getter_); |
44 return getter_->GetURLRequestContext(); | 44 return getter_->GetURLRequestContext(); |
45 } | 45 } |
46 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { | 46 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE { |
47 return false; | 47 return false; |
48 } | 48 } |
49 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { | 49 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE { |
50 return false; | 50 return false; |
51 } | 51 } |
| 52 virtual void SetNetworkState( |
| 53 const std::string& client_id, |
| 54 bool offline) OVERRIDE {} |
52 | 55 |
53 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { | 56 void set_url_request_context_getter(ShellURLRequestContextGetter* getter) { |
54 getter_ = getter; | 57 getter_ = getter; |
55 } | 58 } |
56 | 59 |
57 private: | 60 private: |
58 ShellURLRequestContextGetter* getter_; | 61 ShellURLRequestContextGetter* getter_; |
59 | 62 |
60 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); | 63 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); |
61 }; | 64 }; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 GeolocationPermissionContext* | 235 GeolocationPermissionContext* |
233 ShellBrowserContext::GetGeolocationPermissionContext() { | 236 ShellBrowserContext::GetGeolocationPermissionContext() { |
234 return NULL; | 237 return NULL; |
235 } | 238 } |
236 | 239 |
237 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { | 240 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { |
238 return NULL; | 241 return NULL; |
239 } | 242 } |
240 | 243 |
241 } // namespace content | 244 } // namespace content |
OLD | NEW |