Chromium Code Reviews| Index: chrome/browser/plugins/chrome_content_browser_client_plugins_part.h |
| diff --git a/chrome/browser/plugins/chrome_content_browser_client_plugins_part.h b/chrome/browser/plugins/chrome_content_browser_client_plugins_part.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c07fa7efe8bb5f16b56fb536e2ab8d0bb9a1b2bd |
| --- /dev/null |
| +++ b/chrome/browser/plugins/chrome_content_browser_client_plugins_part.h |
| @@ -0,0 +1,50 @@ |
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
|
Lei Zhang
2014/12/04 22:59:43
nit: no (c)
Jitu( very slow this week)
2014/12/05 05:39:31
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_PLUGINS_CHROME_CONTENT_BROWSER_CLIENT_PLUGINS_PART_H_ |
| +#define CHROME_BROWSER_PLUGINS_CHROME_CONTENT_BROWSER_CLIENT_PLUGINS_PART_H_ |
| + |
| +#include "chrome/browser/chrome_content_browser_client_parts.h" |
| +#include "content/public/browser/browser_ppapi_host.h" |
| +#include "content/public/common/socket_permission_request.h" |
| + |
| +namespace plugins { |
| + |
| +// Implements the extensions portion of ChromeContentBrowserClient. |
|
Lei Zhang
2014/12/04 22:59:43
comment needs to be updated
Jitu( very slow this week)
2014/12/05 05:39:31
Done.
|
| +class ChromeContentBrowserClientPluginsPart |
| + : public ChromeContentBrowserClientParts { |
| + public: |
| + ChromeContentBrowserClientPluginsPart(); |
| + virtual ~ChromeContentBrowserClientPluginsPart(); |
| + |
| + // Corresponding to the ChromeContentBrowserClient function of the same name. |
| + static bool IsPluginAllowedToUseDevChannelAPIs( |
| + content::BrowserContext* browser_context, |
| + const GURL& url, |
| + const std::set<std::string>& allowed_dev_channel_origins); |
| + |
| + static bool AllowPepperSocketAPI( |
| + content::BrowserContext* browser_context, |
| + const GURL& url, |
| + bool private_api, |
| + const content::SocketPermissionRequest* params, |
| + const std::set<std::string>& allowed_socket_origin); |
| + |
| + static bool IsPluginAllowedToCallRequestOSFileHandle( |
| + content::BrowserContext* browser_context, |
| + const GURL& url, |
| + const std::set<std::string>& allowed_file_handle_origins); |
| + |
| + static void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host); |
| + |
| + private: |
| + // ChromeContentBrowserClientParts: |
| + void RenderProcessWillLaunch(content::RenderProcessHost* host) override; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientPluginsPart); |
| +}; |
| + |
| +} // namespace plugins |
| + |
| +#endif // CHROME_BROWSER_PLUGINS_CHROME_CONTENT_BROWSER_CLIENT_PLUGINS_PART_H_ |