OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_PERMISSION_HELPER_DEL
EGATE_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_PERMISSION_HELPER_DEL
EGATE_H_ |
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_PERMISSION_HELPER_DEL
EGATE_H_ | 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_PERMISSION_HELPER_DEL
EGATE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/common/features.h" | 9 #include "chrome/common/features.h" |
10 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" | 10 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 #endif // BUILDFLAG(ENABLE_PLUGINS) | 58 #endif // BUILDFLAG(ENABLE_PLUGINS) |
59 | 59 |
60 private: | 60 private: |
61 #if BUILDFLAG(ENABLE_PLUGINS) | 61 #if BUILDFLAG(ENABLE_PLUGINS) |
62 // Message handlers: | 62 // Message handlers: |
63 void OnBlockedUnauthorizedPlugin(const base::string16& name, | 63 void OnBlockedUnauthorizedPlugin(const base::string16& name, |
64 const std::string& identifier); | 64 const std::string& identifier); |
65 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path); | 65 void OnCouldNotLoadPlugin(const base::FilePath& plugin_path); |
66 void OnBlockedOutdatedPlugin(int placeholder_id, | 66 void OnBlockedOutdatedPlugin(int placeholder_id, |
67 const std::string& identifier); | 67 const std::string& identifier); |
68 void OnOpenAboutPlugins(); | |
69 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 68 #if BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
70 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type); | 69 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type); |
71 | 70 |
72 void OnRemovePluginPlaceholderHost(int placeholder_id); | 71 void OnRemovePluginPlaceholderHost(int placeholder_id); |
73 #endif // BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) | 72 #endif // BUILDFLAG(ENABLE_PLUGIN_INSTALLATION) |
74 | 73 |
75 void OnPermissionResponse(const std::string& identifier, | 74 void OnPermissionResponse(const std::string& identifier, |
76 bool allow, | 75 bool allow, |
77 const std::string& user_input); | 76 const std::string& user_input); |
78 #endif // BUILDFLAG(ENABLE_PLUGINS) | 77 #endif // BUILDFLAG(ENABLE_PLUGINS) |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 std::map<int, int> bridge_id_to_request_id_map_; | 122 std::map<int, int> bridge_id_to_request_id_map_; |
124 | 123 |
125 base::WeakPtrFactory<ChromeWebViewPermissionHelperDelegate> weak_factory_; | 124 base::WeakPtrFactory<ChromeWebViewPermissionHelperDelegate> weak_factory_; |
126 | 125 |
127 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewPermissionHelperDelegate); | 126 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewPermissionHelperDelegate); |
128 }; | 127 }; |
129 | 128 |
130 } // namespace extensions | 129 } // namespace extensions |
131 | 130 |
132 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_PERMISSION_HELPER_
DELEGATE_H_ | 131 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_PERMISSION_HELPER_
DELEGATE_H_ |
OLD | NEW |