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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin_manager.h

Issue 528383003: BrowserPlugin Cleanup: Simplify update device scale factor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 blink::WebFrame* frame, 54 blink::WebFrame* frame,
55 bool auto_navigate) = 0; 55 bool auto_navigate) = 0;
56 56
57 void Attach(int browser_plugin_instance_id); 57 void Attach(int browser_plugin_instance_id);
58 58
59 void AddBrowserPlugin(int browser_plugin_instance_id, 59 void AddBrowserPlugin(int browser_plugin_instance_id,
60 BrowserPlugin* browser_plugin); 60 BrowserPlugin* browser_plugin);
61 void RemoveBrowserPlugin(int browser_plugin_instance_id); 61 void RemoveBrowserPlugin(int browser_plugin_instance_id);
62 BrowserPlugin* GetBrowserPlugin(int browser_plugin_instance_id) const; 62 BrowserPlugin* GetBrowserPlugin(int browser_plugin_instance_id) const;
63 63
64 void UpdateDeviceScaleFactor(float device_scale_factor); 64 void UpdateDeviceScaleFactor();
65 void UpdateFocusState(); 65 void UpdateFocusState();
66 RenderViewImpl* render_view() const { return render_view_.get(); } 66 RenderViewImpl* render_view() const { return render_view_.get(); }
67 int GetNextInstanceID(); 67 int GetNextInstanceID();
68 68
69 // RenderViewObserver implementation. 69 // RenderViewObserver implementation.
70 70
71 // BrowserPluginManager must override the default Send behavior. 71 // BrowserPluginManager must override the default Send behavior.
72 virtual bool Send(IPC::Message* msg) OVERRIDE = 0; 72 virtual bool Send(IPC::Message* msg) OVERRIDE = 0;
73 73
74 // Don't destroy the BrowserPluginManager when the RenderViewImpl goes away. 74 // Don't destroy the BrowserPluginManager when the RenderViewImpl goes away.
(...skipping 14 matching lines...) Expand all
89 IDMap<BrowserPlugin> instances_; 89 IDMap<BrowserPlugin> instances_;
90 int current_instance_id_; 90 int current_instance_id_;
91 base::WeakPtr<RenderViewImpl> render_view_; 91 base::WeakPtr<RenderViewImpl> render_view_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManager); 93 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManager);
94 }; 94 };
95 95
96 } // namespace content 96 } // namespace content
97 97
98 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ 98 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698