Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: android_webview/browser/aw_content_browser_client.h

Issue 17029002: Change the permission check for Pepper socket API to support both the public and private APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | android_webview/browser/aw_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698