| OLD | NEW | 
|---|
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|