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

Side by Side Diff: chrome/browser/ui/webui/chrome_url_data_manager.h

Issue 8590003: chrome: Remove 11 exit time destructors and 4 static initializers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 // Returns true if |data_source| is scheduled for deletion (|DeleteDataSource| 171 // Returns true if |data_source| is scheduled for deletion (|DeleteDataSource|
172 // was invoked). 172 // was invoked).
173 static bool IsScheduledForDeletion(const DataSource* data_source); 173 static bool IsScheduledForDeletion(const DataSource* data_source);
174 174
175 // A callback that returns the ChromeURLDataManagerBackend. Only accessible on 175 // A callback that returns the ChromeURLDataManagerBackend. Only accessible on
176 // the IO thread. This is necessary because ChromeURLDataManager is created on 176 // the IO thread. This is necessary because ChromeURLDataManager is created on
177 // the UI thread, but ChromeURLDataManagerBackend lives on the IO thread. 177 // the UI thread, but ChromeURLDataManagerBackend lives on the IO thread.
178 const base::Callback<ChromeURLDataManagerBackend*(void)> backend_; 178 const base::Callback<ChromeURLDataManagerBackend*(void)> backend_;
179 179
180 // Lock used when accessing |data_sources_|.
181 static base::Lock delete_lock_;
182
183 // |data_sources_| that are no longer referenced and scheduled for deletion. 180 // |data_sources_| that are no longer referenced and scheduled for deletion.
181 // Protected by a g_delete_lock.
Mark Mentovai 2011/11/16 22:54:24 What’s a g_delete_lock? 1. Get rid of the “a”. 2
Nico 2011/11/16 22:59:20 Done.
184 static DataSources* data_sources_; 182 static DataSources* data_sources_;
185 183
186 DISALLOW_COPY_AND_ASSIGN(ChromeURLDataManager); 184 DISALLOW_COPY_AND_ASSIGN(ChromeURLDataManager);
187 }; 185 };
188 186
189 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_H_ 187 #endif // CHROME_BROWSER_UI_WEBUI_CHROME_URL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698