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

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

Issue 376033002: Adding MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pending-zork-patch2
Patch Set: With the new attach approach 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 explicit BrowserPluginManager(RenderViewImpl* render_view); 46 explicit BrowserPluginManager(RenderViewImpl* render_view);
47 47
48 // Creates a new BrowserPlugin object. 48 // Creates a new BrowserPlugin object.
49 // BrowserPlugin is responsible for associating itself with the 49 // BrowserPlugin is responsible for associating itself with the
50 // BrowserPluginManager via AddBrowserPlugin. When it is destroyed, it is 50 // BrowserPluginManager via AddBrowserPlugin. When it is destroyed, it is
51 // responsible for removing its association via RemoveBrowserPlugin. 51 // responsible for removing its association via RemoveBrowserPlugin.
52 virtual BrowserPlugin* CreateBrowserPlugin( 52 virtual BrowserPlugin* CreateBrowserPlugin(
53 RenderViewImpl* render_view, 53 RenderViewImpl* render_view,
54 blink::WebFrame* frame, 54 blink::WebFrame* frame,
55 bool auto_navigate) = 0; 55 bool auto_navigate,
56 const std::string& mime_type) = 0;
Fady Samuel 2014/08/29 18:52:31 Take in a delegate.
lazyboy 2014/08/29 22:08:25 Done.
56 57
57 void Attach(int browser_plugin_instance_id); 58 void Attach(int browser_plugin_instance_id);
58 59
59 void AddBrowserPlugin(int browser_plugin_instance_id, 60 void AddBrowserPlugin(int browser_plugin_instance_id,
60 BrowserPlugin* browser_plugin); 61 BrowserPlugin* browser_plugin);
61 void RemoveBrowserPlugin(int browser_plugin_instance_id); 62 void RemoveBrowserPlugin(int browser_plugin_instance_id);
62 BrowserPlugin* GetBrowserPlugin(int browser_plugin_instance_id) const; 63 BrowserPlugin* GetBrowserPlugin(int browser_plugin_instance_id) const;
63 64
64 void UpdateDeviceScaleFactor(float device_scale_factor); 65 void UpdateDeviceScaleFactor(float device_scale_factor);
65 void UpdateFocusState(); 66 void UpdateFocusState();
(...skipping 23 matching lines...) Expand all
89 IDMap<BrowserPlugin> instances_; 90 IDMap<BrowserPlugin> instances_;
90 int current_instance_id_; 91 int current_instance_id_;
91 base::WeakPtr<RenderViewImpl> render_view_; 92 base::WeakPtr<RenderViewImpl> render_view_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManager); 94 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManager);
94 }; 95 };
95 96
96 } // namespace content 97 } // namespace content
97 98
98 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_ 99 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698