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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.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 (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 #include "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 namespace content { 121 namespace content {
122 namespace { 122 namespace {
123 123
124 bool g_check_for_pending_resize_ack = true; 124 bool g_check_for_pending_resize_ack = true;
125 125
126 // <process id, routing id> 126 // <process id, routing id>
127 using RenderWidgetHostID = std::pair<int32_t, int32_t>; 127 using RenderWidgetHostID = std::pair<int32_t, int32_t>;
128 using RoutingIDWidgetMap = 128 using RoutingIDWidgetMap =
129 base::hash_map<RenderWidgetHostID, RenderWidgetHostImpl*>; 129 base::hash_map<RenderWidgetHostID, RenderWidgetHostImpl*>;
130 base::LazyInstance<RoutingIDWidgetMap> g_routing_id_widget_map = 130 base::LazyInstance<RoutingIDWidgetMap>::DestructorAtExit
131 LAZY_INSTANCE_INITIALIZER; 131 g_routing_id_widget_map = LAZY_INSTANCE_INITIALIZER;
132 132
133 // Implements the RenderWidgetHostIterator interface. It keeps a list of 133 // Implements the RenderWidgetHostIterator interface. It keeps a list of
134 // RenderWidgetHosts, and makes sure it returns a live RenderWidgetHost at each 134 // RenderWidgetHosts, and makes sure it returns a live RenderWidgetHost at each
135 // iteration (or NULL if there isn't any left). 135 // iteration (or NULL if there isn't any left).
136 class RenderWidgetHostIteratorImpl : public RenderWidgetHostIterator { 136 class RenderWidgetHostIteratorImpl : public RenderWidgetHostIterator {
137 public: 137 public:
138 RenderWidgetHostIteratorImpl() 138 RenderWidgetHostIteratorImpl()
139 : current_index_(0) { 139 : current_index_(0) {
140 } 140 }
141 141
(...skipping 2372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2514 // different from the receiver's. 2514 // different from the receiver's.
2515 file_system_file.url = 2515 file_system_file.url =
2516 GURL(storage::GetIsolatedFileSystemRootURIString( 2516 GURL(storage::GetIsolatedFileSystemRootURIString(
2517 file_system_url.origin(), filesystem_id, std::string()) 2517 file_system_url.origin(), filesystem_id, std::string())
2518 .append(register_name)); 2518 .append(register_name));
2519 file_system_file.filesystem_id = filesystem_id; 2519 file_system_file.filesystem_id = filesystem_id;
2520 } 2520 }
2521 } 2521 }
2522 2522
2523 } // namespace content 2523 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698