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

Side by Side Diff: chrome/browser/ui/webui/options/media_galleries_handler.h

Issue 24269007: Media Galleries API: Fix MediaGalleriesPreferences finders race. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
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 CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_GALLERIES_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_GALLERIES_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_GALLERIES_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_GALLERIES_HANDLER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/prefs/pref_change_registrar.h" 10 #include "base/prefs/pref_change_registrar.h"
(...skipping 24 matching lines...) Expand all
35 // Handles the "addNewGallery" message (no arguments). 35 // Handles the "addNewGallery" message (no arguments).
36 void HandleAddNewGallery(const base::ListValue* args); 36 void HandleAddNewGallery(const base::ListValue* args);
37 // Handles "forgetGallery" message. The first and only argument is the id of 37 // Handles "forgetGallery" message. The first and only argument is the id of
38 // the gallery. 38 // the gallery.
39 void HandleForgetGallery(const base::ListValue* args); 39 void HandleForgetGallery(const base::ListValue* args);
40 40
41 // Called when the list of known galleries has changed; updates the page. 41 // Called when the list of known galleries has changed; updates the page.
42 void OnGalleriesChanged(); 42 void OnGalleriesChanged();
43 43
44 // Bottom half of |InitializePage()| after async call to initialize 44 // Bottom half of |InitializePage()| after async call to initialize
45 // StorageMonitor. 45 // MediaGalleriesPreferences.
46 void InitializeOnStorageMonitorInit(); 46 void InitializeOnMediaGalleriesPreferencesInit();
47 47
48 // Bottom half of |RegisterMessages()| after async call to initialize 48 // Bottom half of |RegisterMessages()| after async call to initialize
49 // StorageMonitor. 49 // MediaGalleriesPreferences.
50 void RegisterOnStorageMonitorInit(); 50 void RegisterOnPreferencesInit();
51 51
52 PrefChangeRegistrar pref_change_registrar_; 52 PrefChangeRegistrar pref_change_registrar_;
53 53
54 scoped_refptr<ui::SelectFileDialog> select_file_dialog_; 54 scoped_refptr<ui::SelectFileDialog> select_file_dialog_;
55 55
56 base::WeakPtrFactory<MediaGalleriesHandler> weak_ptr_factory_; 56 base::WeakPtrFactory<MediaGalleriesHandler> weak_ptr_factory_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesHandler); 58 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesHandler);
59 }; 59 };
60 60
61 } // namespace options 61 } // namespace options
62 62
63 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_GALLERIES_HANDLER_H_ 63 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MEDIA_GALLERIES_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/storage_monitor/storage_monitor.cc ('k') | chrome/browser/ui/webui/options/media_galleries_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698