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

Side by Side Diff: chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_
7 7
8 #include <memory>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/values.h" 12 #include "base/values.h"
12 #include "chrome/browser/sync_file_system/sync_event_observer.h" 13 #include "chrome/browser/sync_file_system/sync_event_observer.h"
13 #include "extensions/browser/browser_context_keyed_api_factory.h" 14 #include "extensions/browser/browser_context_keyed_api_factory.h"
14 #include "extensions/browser/extension_event_histogram_value.h" 15 #include "extensions/browser/extension_event_histogram_value.h"
15 16
16 namespace content { 17 namespace content {
17 class BrowserContext; 18 class BrowserContext;
18 } 19 }
19 20
20 namespace sync_file_system { 21 namespace sync_file_system {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 static const bool kServiceIsCreatedWithBrowserContext = false; 63 static const bool kServiceIsCreatedWithBrowserContext = false;
63 64
64 content::BrowserContext* browser_context_; 65 content::BrowserContext* browser_context_;
65 66
66 // Not owned. If not null, then this is registered to SyncFileSystemService. 67 // Not owned. If not null, then this is registered to SyncFileSystemService.
67 sync_file_system::SyncFileSystemService* sync_service_; 68 sync_file_system::SyncFileSystemService* sync_service_;
68 69
69 void BroadcastOrDispatchEvent(const GURL& app_origin, 70 void BroadcastOrDispatchEvent(const GURL& app_origin,
70 events::HistogramValue histogram_value, 71 events::HistogramValue histogram_value,
71 const std::string& event_name, 72 const std::string& event_name,
72 scoped_ptr<base::ListValue> value); 73 std::unique_ptr<base::ListValue> value);
73 74
74 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncEventObserver); 75 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncEventObserver);
75 }; 76 };
76 77
77 template <> 78 template <>
78 void BrowserContextKeyedAPIFactory< 79 void BrowserContextKeyedAPIFactory<
79 ExtensionSyncEventObserver>::DeclareFactoryDependencies(); 80 ExtensionSyncEventObserver>::DeclareFactoryDependencies();
80 81
81 } // namespace extensions 82 } // namespace extensions
82 83
83 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_O BSERVER_H_ 84 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_O BSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698