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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h

Issue 22150005: file_manager: Rename file_manager_event_router.h to event_router.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API _H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API _H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API _H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API _H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 9 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
10 10
11 class Profile; 11 class Profile;
12 12
13 namespace file_manager { 13 namespace file_manager {
14 14
15 class FileManagerEventRouter; 15 class EventRouter;
16 16
17 // Manages and registers the fileBrowserPrivate API with the extension system. 17 // Manages and registers the fileBrowserPrivate API with the extension system.
18 class FileBrowserPrivateAPI : public BrowserContextKeyedService { 18 class FileBrowserPrivateAPI : public BrowserContextKeyedService {
19 public: 19 public:
20 explicit FileBrowserPrivateAPI(Profile* profile); 20 explicit FileBrowserPrivateAPI(Profile* profile);
21 virtual ~FileBrowserPrivateAPI(); 21 virtual ~FileBrowserPrivateAPI();
22 22
23 // BrowserContextKeyedService overrides. 23 // BrowserContextKeyedService overrides.
24 virtual void Shutdown() OVERRIDE; 24 virtual void Shutdown() OVERRIDE;
25 25
26 // Convenience function to return the FileBrowserPrivateAPI for a Profile. 26 // Convenience function to return the FileBrowserPrivateAPI for a Profile.
27 static FileBrowserPrivateAPI* Get(Profile* profile); 27 static FileBrowserPrivateAPI* Get(Profile* profile);
28 28
29 FileManagerEventRouter* event_router() { 29 EventRouter* event_router() { return event_router_.get(); }
30 return event_router_.get();
31 }
32 30
33 private: 31 private:
34 scoped_ptr<FileManagerEventRouter> event_router_; 32 scoped_ptr<EventRouter> event_router_;
35 }; 33 };
36 34
37 } // namespace file_manager 35 } // namespace file_manager
38 36
39 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_ API_H_ 37 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_ API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698