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

Side by Side Diff: chrome/browser/extensions/api/tab_capture/tab_capture_registry.h

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
11 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 11 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
12 #include "chrome/common/extensions/api/tab_capture.h" 12 #include "chrome/common/extensions/api/tab_capture.h"
13 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 13 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
14 #include "content/public/browser/media_request_state.h" 14 #include "content/public/browser/media_request_state.h"
15 #include "content/public/browser/notification_observer.h" 15 #include "content/public/browser/notification_observer.h"
16 #include "content/public/browser/notification_registrar.h" 16 #include "content/public/browser/notification_registrar.h"
17 17
18 class Profile; 18 class Profile;
19 19
20 namespace extensions { 20 namespace extensions {
21 21
22 struct TabCaptureRequest; 22 struct TabCaptureRequest;
23 class FullscreenObserver; 23 class FullscreenObserver;
24 24
25 namespace tab_capture = extensions::api::tab_capture; 25 namespace tab_capture = extensions::api::tab_capture;
26 26
27 class TabCaptureRegistry : public ProfileKeyedService, 27 class TabCaptureRegistry : public BrowserContextKeyedService,
28 public content::NotificationObserver, 28 public content::NotificationObserver,
29 public MediaCaptureDevicesDispatcher::Observer { 29 public MediaCaptureDevicesDispatcher::Observer {
30 public: 30 public:
31 typedef std::vector<std::pair<int, tab_capture::TabCaptureState> > 31 typedef std::vector<std::pair<int, tab_capture::TabCaptureState> >
32 RegistryCaptureInfo; 32 RegistryCaptureInfo;
33 33
34 explicit TabCaptureRegistry(Profile* profile); 34 explicit TabCaptureRegistry(Profile* profile);
35 35
36 // List all pending, active and stopped capture requests. 36 // List all pending, active and stopped capture requests.
37 const RegistryCaptureInfo GetCapturedTabs( 37 const RegistryCaptureInfo GetCapturedTabs(
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 content::NotificationRegistrar registrar_; 76 content::NotificationRegistrar registrar_;
77 Profile* const profile_; 77 Profile* const profile_;
78 ScopedVector<TabCaptureRequest> requests_; 78 ScopedVector<TabCaptureRequest> requests_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(TabCaptureRegistry); 80 DISALLOW_COPY_AND_ASSIGN(TabCaptureRegistry);
81 }; 81 };
82 82
83 } // namespace extension 83 } // namespace extension
84 84
85 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_ 85 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698