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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 const std::string& value) OVERRIDE; | 133 const std::string& value) OVERRIDE; |
134 virtual void ClearCache(content::RenderViewHost* rvh) OVERRIDE; | 134 virtual void ClearCache(content::RenderViewHost* rvh) OVERRIDE; |
135 virtual void ClearCookies(content::RenderViewHost* rvh) OVERRIDE; | 135 virtual void ClearCookies(content::RenderViewHost* rvh) OVERRIDE; |
136 virtual base::FilePath GetDefaultDownloadDirectory() OVERRIDE; | 136 virtual base::FilePath GetDefaultDownloadDirectory() OVERRIDE; |
137 virtual std::string GetDefaultDownloadName() OVERRIDE; | 137 virtual std::string GetDefaultDownloadName() OVERRIDE; |
138 virtual void DidCreatePpapiPlugin( | 138 virtual void DidCreatePpapiPlugin( |
139 content::BrowserPpapiHost* browser_host) OVERRIDE; | 139 content::BrowserPpapiHost* browser_host) OVERRIDE; |
140 virtual bool AllowPepperSocketAPI( | 140 virtual bool AllowPepperSocketAPI( |
141 content::BrowserContext* browser_context, | 141 content::BrowserContext* browser_context, |
142 const GURL& url, | 142 const GURL& url, |
| 143 bool private_api, |
143 const content::SocketPermissionRequest& params) OVERRIDE; | 144 const content::SocketPermissionRequest& params) OVERRIDE; |
144 | 145 |
145 private: | 146 private: |
146 // Android WebView currently has a single global (non-off-the-record) browser | 147 // Android WebView currently has a single global (non-off-the-record) browser |
147 // context. | 148 // context. |
148 scoped_ptr<AwBrowserContext> browser_context_; | 149 scoped_ptr<AwBrowserContext> browser_context_; |
149 | 150 |
150 JniDependencyFactory* native_factory_; | 151 JniDependencyFactory* native_factory_; |
151 | 152 |
152 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); | 153 DISALLOW_COPY_AND_ASSIGN(AwContentBrowserClient); |
153 }; | 154 }; |
154 | 155 |
155 } // namespace android_webview | 156 } // namespace android_webview |
156 | 157 |
157 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ | 158 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |