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

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

Issue 2154773002: Implement Just-In-Time Flash updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First Review Pass 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 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 27 matching lines...) Expand all
38 const PowerSaverInfo& power_saver_info); 38 const PowerSaverInfo& power_saver_info);
39 39
40 // Creates a new WebViewPlugin with a MissingPlugin as a delegate. 40 // Creates a new WebViewPlugin with a MissingPlugin as a delegate.
41 static ChromePluginPlaceholder* CreateLoadableMissingPlugin( 41 static ChromePluginPlaceholder* CreateLoadableMissingPlugin(
42 content::RenderFrame* render_frame, 42 content::RenderFrame* render_frame,
43 blink::WebLocalFrame* frame, 43 blink::WebLocalFrame* frame,
44 const blink::WebPluginParams& params); 44 const blink::WebPluginParams& params);
45 45
46 void SetStatus(ChromeViewHostMsg_GetPluginInfo_Status status); 46 void SetStatus(ChromeViewHostMsg_GetPluginInfo_Status status);
47 47
48 #if defined(ENABLE_PLUGIN_INSTALLATION)
49 int32_t CreateRoutingId(); 48 int32_t CreateRoutingId();
50 #endif
51 49
52 private: 50 private:
53 ChromePluginPlaceholder(content::RenderFrame* render_frame, 51 ChromePluginPlaceholder(content::RenderFrame* render_frame,
54 blink::WebLocalFrame* frame, 52 blink::WebLocalFrame* frame,
55 const blink::WebPluginParams& params, 53 const blink::WebPluginParams& params,
56 const std::string& html_data, 54 const std::string& html_data,
57 const base::string16& title); 55 const base::string16& title);
58 ~ChromePluginPlaceholder() override; 56 ~ChromePluginPlaceholder() override;
59 57
60 // content::LoadablePluginPlaceholder overrides. 58 // content::LoadablePluginPlaceholder overrides.
(...skipping 24 matching lines...) Expand all
85 83
86 // IPC message handlers: 84 // IPC message handlers:
87 #if defined(ENABLE_PLUGIN_INSTALLATION) 85 #if defined(ENABLE_PLUGIN_INSTALLATION)
88 void OnDidNotFindMissingPlugin(); 86 void OnDidNotFindMissingPlugin();
89 void OnFoundMissingPlugin(const base::string16& plugin_name); 87 void OnFoundMissingPlugin(const base::string16& plugin_name);
90 void OnStartedDownloadingPlugin(); 88 void OnStartedDownloadingPlugin();
91 void OnFinishedDownloadingPlugin(); 89 void OnFinishedDownloadingPlugin();
92 void OnErrorDownloadingPlugin(const std::string& error); 90 void OnErrorDownloadingPlugin(const std::string& error);
93 void OnCancelledDownloadingPlugin(); 91 void OnCancelledDownloadingPlugin();
94 #endif 92 #endif
93 void OnPluginComponentUpdateDownloading();
94 void OnPluginComponentUpdateSuccess();
95 void OnPluginComponentUpdateFailure();
95 96
96 ChromeViewHostMsg_GetPluginInfo_Status status_; 97 ChromeViewHostMsg_GetPluginInfo_Status status_;
97 98
98 base::string16 title_; 99 base::string16 title_;
99 100
100 #if defined(ENABLE_PLUGIN_INSTALLATION)
101 // |routing_id()| is the routing ID of our associated RenderView, but we have 101 // |routing_id()| is the routing ID of our associated RenderView, but we have
102 // a separate routing ID for messages specific to this placeholder. 102 // a separate routing ID for messages specific to this placeholder.
103 int32_t placeholder_routing_id_ = MSG_ROUTING_NONE; 103 int32_t placeholder_routing_id_ = MSG_ROUTING_NONE;
104 104
105 #if defined(ENABLE_PLUGIN_INSTALLATION)
105 bool has_host_ = false; 106 bool has_host_ = false;
106 #endif 107 #endif
107 108
108 int context_menu_request_id_; // Nonzero when request pending. 109 int context_menu_request_id_; // Nonzero when request pending.
109 base::string16 plugin_name_; 110 base::string16 plugin_name_;
110 111
111 bool did_send_blocked_content_notification_; 112 bool did_send_blocked_content_notification_;
112 113
113 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); 114 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder);
114 }; 115 };
115 116
116 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ 117 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698