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

Side by Side Diff: chrome/renderer/plugins/chrome_plugin_placeholder.h

Issue 2179903005: [Prerender] Change IPC from bool to enum for more prerender modes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetchProto
Patch Set: Rebase Created 4 years, 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ 5 #ifndef CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
6 #define CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ 6 #define CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/common/prerender_types.h"
12 #include "chrome/renderer/plugins/power_saver_info.h" 13 #include "chrome/renderer/plugins/power_saver_info.h"
13 #include "components/plugins/renderer/loadable_plugin_placeholder.h" 14 #include "components/plugins/renderer/loadable_plugin_placeholder.h"
14 #include "content/public/renderer/context_menu_client.h" 15 #include "content/public/renderer/context_menu_client.h"
15 #include "content/public/renderer/render_thread_observer.h" 16 #include "content/public/renderer/render_thread_observer.h"
16 17
17 enum class ChromeViewHostMsg_GetPluginInfo_Status; 18 enum class ChromeViewHostMsg_GetPluginInfo_Status;
18 19
19 class ChromePluginPlaceholder final 20 class ChromePluginPlaceholder final
20 : public plugins::LoadablePluginPlaceholder, 21 : public plugins::LoadablePluginPlaceholder,
21 public content::RenderThreadObserver, 22 public content::RenderThreadObserver,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void OnDidNotFindMissingPlugin(); 88 void OnDidNotFindMissingPlugin();
88 void OnFoundMissingPlugin(const base::string16& plugin_name); 89 void OnFoundMissingPlugin(const base::string16& plugin_name);
89 void OnStartedDownloadingPlugin(); 90 void OnStartedDownloadingPlugin();
90 void OnFinishedDownloadingPlugin(); 91 void OnFinishedDownloadingPlugin();
91 void OnErrorDownloadingPlugin(const std::string& error); 92 void OnErrorDownloadingPlugin(const std::string& error);
92 void OnCancelledDownloadingPlugin(); 93 void OnCancelledDownloadingPlugin();
93 #endif 94 #endif
94 void OnPluginComponentUpdateDownloading(); 95 void OnPluginComponentUpdateDownloading();
95 void OnPluginComponentUpdateSuccess(); 96 void OnPluginComponentUpdateSuccess();
96 void OnPluginComponentUpdateFailure(); 97 void OnPluginComponentUpdateFailure();
98 void OnSetPrerenderMode(prerender::PrerenderMode mode);
97 99
98 ChromeViewHostMsg_GetPluginInfo_Status status_; 100 ChromeViewHostMsg_GetPluginInfo_Status status_;
99 101
100 base::string16 title_; 102 base::string16 title_;
101 103
102 // |routing_id()| is the routing ID of our associated RenderView, but we have 104 // |routing_id()| is the routing ID of our associated RenderView, but we have
103 // a separate routing ID for messages specific to this placeholder. 105 // a separate routing ID for messages specific to this placeholder.
104 int32_t placeholder_routing_id_ = MSG_ROUTING_NONE; 106 int32_t placeholder_routing_id_ = MSG_ROUTING_NONE;
105 107
106 #if defined(ENABLE_PLUGIN_INSTALLATION) 108 #if defined(ENABLE_PLUGIN_INSTALLATION)
107 bool has_host_ = false; 109 bool has_host_ = false;
108 #endif 110 #endif
109 111
110 int context_menu_request_id_; // Nonzero when request pending. 112 int context_menu_request_id_; // Nonzero when request pending.
111 base::string16 plugin_name_; 113 base::string16 plugin_name_;
112 114
113 bool did_send_blocked_content_notification_; 115 bool did_send_blocked_content_notification_;
114 116
115 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); 117 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder);
116 }; 118 };
117 119
118 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ 120 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_render_frame_observer.cc ('k') | chrome/renderer/plugins/chrome_plugin_placeholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698