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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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>
9
10 #include "base/macros.h"
8 #include "chrome/renderer/plugins/power_saver_info.h" 11 #include "chrome/renderer/plugins/power_saver_info.h"
9 #include "components/plugins/renderer/loadable_plugin_placeholder.h" 12 #include "components/plugins/renderer/loadable_plugin_placeholder.h"
10 #include "content/public/renderer/context_menu_client.h" 13 #include "content/public/renderer/context_menu_client.h"
11 #include "content/public/renderer/render_process_observer.h" 14 #include "content/public/renderer/render_process_observer.h"
12 15
13 enum class ChromeViewHostMsg_GetPluginInfo_Status; 16 enum class ChromeViewHostMsg_GetPluginInfo_Status;
14 17
15 class ChromePluginPlaceholder final 18 class ChromePluginPlaceholder final
16 : public plugins::LoadablePluginPlaceholder, 19 : public plugins::LoadablePluginPlaceholder,
17 public content::RenderProcessObserver, 20 public content::RenderProcessObserver,
(...skipping 15 matching lines...) Expand all
33 36
34 // Creates a new WebViewPlugin with a MissingPlugin as a delegate. 37 // Creates a new WebViewPlugin with a MissingPlugin as a delegate.
35 static ChromePluginPlaceholder* CreateLoadableMissingPlugin( 38 static ChromePluginPlaceholder* CreateLoadableMissingPlugin(
36 content::RenderFrame* render_frame, 39 content::RenderFrame* render_frame,
37 blink::WebLocalFrame* frame, 40 blink::WebLocalFrame* frame,
38 const blink::WebPluginParams& params); 41 const blink::WebPluginParams& params);
39 42
40 void SetStatus(ChromeViewHostMsg_GetPluginInfo_Status status); 43 void SetStatus(ChromeViewHostMsg_GetPluginInfo_Status status);
41 44
42 #if defined(ENABLE_PLUGIN_INSTALLATION) 45 #if defined(ENABLE_PLUGIN_INSTALLATION)
43 int32 CreateRoutingId(); 46 int32_t CreateRoutingId();
44 #endif 47 #endif
45 48
46 private: 49 private:
47 ChromePluginPlaceholder(content::RenderFrame* render_frame, 50 ChromePluginPlaceholder(content::RenderFrame* render_frame,
48 blink::WebLocalFrame* frame, 51 blink::WebLocalFrame* frame,
49 const blink::WebPluginParams& params, 52 const blink::WebPluginParams& params,
50 const std::string& html_data, 53 const std::string& html_data,
51 const base::string16& title); 54 const base::string16& title);
52 ~ChromePluginPlaceholder() override; 55 ~ChromePluginPlaceholder() override;
53 56
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void OnCancelledDownloadingPlugin(); 89 void OnCancelledDownloadingPlugin();
87 #endif 90 #endif
88 91
89 ChromeViewHostMsg_GetPluginInfo_Status status_; 92 ChromeViewHostMsg_GetPluginInfo_Status status_;
90 93
91 base::string16 title_; 94 base::string16 title_;
92 95
93 #if defined(ENABLE_PLUGIN_INSTALLATION) 96 #if defined(ENABLE_PLUGIN_INSTALLATION)
94 // |routing_id()| is the routing ID of our associated RenderView, but we have 97 // |routing_id()| is the routing ID of our associated RenderView, but we have
95 // a separate routing ID for messages specific to this placeholder. 98 // a separate routing ID for messages specific to this placeholder.
96 int32 placeholder_routing_id_; 99 int32_t placeholder_routing_id_;
97 #endif 100 #endif
98 101
99 bool has_host_; 102 bool has_host_;
100 int context_menu_request_id_; // Nonzero when request pending. 103 int context_menu_request_id_; // Nonzero when request pending.
101 base::string16 plugin_name_; 104 base::string16 plugin_name_;
102 105
103 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder); 106 DISALLOW_COPY_AND_ASSIGN(ChromePluginPlaceholder);
104 }; 107 };
105 108
106 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_ 109 #endif // CHROME_RENDERER_PLUGINS_CHROME_PLUGIN_PLACEHOLDER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/pepper/pepper_uma_host.cc ('k') | chrome/renderer/plugins/chrome_plugin_placeholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698