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

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs_windows_api.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: Rebase and fix header 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_TABS_TABS_WINDOWS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_WINDOWS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_WINDOWS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_WINDOWS_API_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "components/keyed_service/core/keyed_service.h" 10 #include "components/keyed_service/core/keyed_service.h"
10 #include "extensions/browser/browser_context_keyed_api_factory.h" 11 #include "extensions/browser/browser_context_keyed_api_factory.h"
11 #include "extensions/browser/event_router.h" 12 #include "extensions/browser/event_router.h"
12 13
13 namespace extensions { 14 namespace extensions {
14 class TabsEventRouter; 15 class TabsEventRouter;
15 class WindowsEventRouter; 16 class WindowsEventRouter;
16 17
17 class TabsWindowsAPI : public BrowserContextKeyedAPI, 18 class TabsWindowsAPI : public BrowserContextKeyedAPI,
18 public EventRouter::Observer { 19 public EventRouter::Observer {
(...skipping 20 matching lines...) Expand all
39 friend class BrowserContextKeyedAPIFactory<TabsWindowsAPI>; 40 friend class BrowserContextKeyedAPIFactory<TabsWindowsAPI>;
40 41
41 content::BrowserContext* browser_context_; 42 content::BrowserContext* browser_context_;
42 43
43 // BrowserContextKeyedAPI implementation. 44 // BrowserContextKeyedAPI implementation.
44 static const char* service_name() { 45 static const char* service_name() {
45 return "TabsWindowsAPI"; 46 return "TabsWindowsAPI";
46 } 47 }
47 static const bool kServiceIsNULLWhileTesting = true; 48 static const bool kServiceIsNULLWhileTesting = true;
48 49
49 scoped_ptr<TabsEventRouter> tabs_event_router_; 50 std::unique_ptr<TabsEventRouter> tabs_event_router_;
50 scoped_ptr<WindowsEventRouter> windows_event_router_; 51 std::unique_ptr<WindowsEventRouter> windows_event_router_;
51 }; 52 };
52 53
53 } // namespace extensions 54 } // namespace extensions
54 55
55 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_WINDOWS_API_H_ 56 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_WINDOWS_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_test.cc ('k') | chrome/browser/extensions/api/tabs/windows_event_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698