| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "content/public/browser/content_browser_client.h" | 8 #include "content/public/browser/content_browser_client.h" |
| 9 | 9 |
| 10 #include "android_webview/browser/aw_browser_context.h" | 10 #include "android_webview/browser/aw_browser_context.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 virtual void UpdateInspectorSetting(content::RenderViewHost* rvh, | 108 virtual void UpdateInspectorSetting(content::RenderViewHost* rvh, |
| 109 const std::string& key, | 109 const std::string& key, |
| 110 const std::string& value) OVERRIDE; | 110 const std::string& value) OVERRIDE; |
| 111 virtual void ClearInspectorSettings(content::RenderViewHost* rvh) OVERRIDE; | 111 virtual void ClearInspectorSettings(content::RenderViewHost* rvh) OVERRIDE; |
| 112 virtual void ClearCache(content::RenderViewHost* rvh) OVERRIDE; | 112 virtual void ClearCache(content::RenderViewHost* rvh) OVERRIDE; |
| 113 virtual void ClearCookies(content::RenderViewHost* rvh) OVERRIDE; | 113 virtual void ClearCookies(content::RenderViewHost* rvh) OVERRIDE; |
| 114 virtual FilePath GetDefaultDownloadDirectory() OVERRIDE; | 114 virtual FilePath GetDefaultDownloadDirectory() OVERRIDE; |
| 115 virtual std::string GetDefaultDownloadName() OVERRIDE; | 115 virtual std::string GetDefaultDownloadName() OVERRIDE; |
| 116 virtual void DidCreatePpapiPlugin( | 116 virtual void DidCreatePpapiPlugin( |
| 117 content::BrowserPpapiHost* browser_host) OVERRIDE; | 117 content::BrowserPpapiHost* browser_host) OVERRIDE; |
| 118 virtual bool AllowPepperSocketAPI(content::BrowserContext* browser_context, | 118 virtual bool AllowPepperSocketAPI( |
| 119 const GURL& url) OVERRIDE; | 119 content::BrowserContext* browser_context, |
| 120 const GURL& url, |
| 121 const content::SocketPermissionRequest& params) OVERRIDE; |
| 120 private: | 122 private: |
| 121 // Android WebView currently has a single global (non-off-the-record) browser | 123 // Android WebView currently has a single global (non-off-the-record) browser |
| 122 // context. | 124 // context. |
| 123 scoped_ptr<AwBrowserContext> browser_context_; | 125 scoped_ptr<AwBrowserContext> browser_context_; |
| 124 | 126 |
| 125 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 127 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
| 126 }; | 128 }; |
| 127 | 129 |
| 128 } // namespace android_webview | 130 } // namespace android_webview |
| 129 | 131 |
| 130 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 132 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |