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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: Created 3 years, 9 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "content/renderer/browser_plugin/browser_plugin.h" 5 #include "content/renderer/browser_plugin/browser_plugin.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 using blink::WebPluginContainer; 44 using blink::WebPluginContainer;
45 using blink::WebPoint; 45 using blink::WebPoint;
46 using blink::WebRect; 46 using blink::WebRect;
47 using blink::WebURL; 47 using blink::WebURL;
48 using blink::WebVector; 48 using blink::WebVector;
49 49
50 namespace { 50 namespace {
51 using PluginContainerMap = 51 using PluginContainerMap =
52 std::map<blink::WebPluginContainer*, content::BrowserPlugin*>; 52 std::map<blink::WebPluginContainer*, content::BrowserPlugin*>;
53 static base::LazyInstance<PluginContainerMap> g_plugin_container_map = 53 static base::LazyInstance<PluginContainerMap>::DestructorAtExit
54 LAZY_INSTANCE_INITIALIZER; 54 g_plugin_container_map = LAZY_INSTANCE_INITIALIZER;
55 } // namespace 55 } // namespace
56 56
57 namespace content { 57 namespace content {
58 58
59 // static 59 // static
60 BrowserPlugin* BrowserPlugin::GetFromNode(blink::WebNode& node) { 60 BrowserPlugin* BrowserPlugin::GetFromNode(blink::WebNode& node) {
61 blink::WebPluginContainer* container = node.pluginContainer(); 61 blink::WebPluginContainer* container = node.pluginContainer();
62 if (!container) 62 if (!container)
63 return nullptr; 63 return nullptr;
64 64
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 621
622 bool BrowserPlugin::HandleMouseLockedInputEvent( 622 bool BrowserPlugin::HandleMouseLockedInputEvent(
623 const blink::WebMouseEvent& event) { 623 const blink::WebMouseEvent& event) {
624 BrowserPluginManager::Get()->Send( 624 BrowserPluginManager::Get()->Send(
625 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_, 625 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_,
626 &event)); 626 &event));
627 return true; 627 return true;
628 } 628 }
629 629
630 } // namespace content 630 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698