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

Side by Side Diff: chrome/browser/extensions/api/input/input.h

Issue 166053003: Move ProfileKeyedAPI implementations to take BrowserContext in the constructor (part 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: | Created 6 years, 10 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_INPUT_INPUT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_INPUT_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_INPUT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_INPUT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" 9 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
10 #include "extensions/browser/extension_function.h" 10 #include "extensions/browser/extension_function.h"
11 11
12 class Profile; 12 namespace content {
13 class BrowserContext;
14 }
13 15
14 namespace extensions { 16 namespace extensions {
15 17
16 class VirtualKeyboardPrivateInsertTextFunction : public SyncExtensionFunction { 18 class VirtualKeyboardPrivateInsertTextFunction : public SyncExtensionFunction {
17 public: 19 public:
18 DECLARE_EXTENSION_FUNCTION("virtualKeyboardPrivate.insertText", 20 DECLARE_EXTENSION_FUNCTION("virtualKeyboardPrivate.insertText",
19 VIRTUALKEYBOARDPRIVATE_INSERTTEXT); 21 VIRTUALKEYBOARDPRIVATE_INSERTTEXT);
20 22
21 protected: 23 protected:
22 virtual ~VirtualKeyboardPrivateInsertTextFunction() {} 24 virtual ~VirtualKeyboardPrivateInsertTextFunction() {}
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 104
103 protected: 105 protected:
104 virtual ~VirtualKeyboardPrivateGetKeyboardConfigFunction() {} 106 virtual ~VirtualKeyboardPrivateGetKeyboardConfigFunction() {}
105 107
106 // ExtensionFunction: 108 // ExtensionFunction:
107 virtual bool RunImpl() OVERRIDE; 109 virtual bool RunImpl() OVERRIDE;
108 }; 110 };
109 111
110 class InputAPI : public ProfileKeyedAPI { 112 class InputAPI : public ProfileKeyedAPI {
111 public: 113 public:
112 explicit InputAPI(Profile* profile); 114 explicit InputAPI(content::BrowserContext* context);
113 virtual ~InputAPI(); 115 virtual ~InputAPI();
114 116
115 // ProfileKeyedAPI implementation. 117 // ProfileKeyedAPI implementation.
116 static ProfileKeyedAPIFactory<InputAPI>* GetFactoryInstance(); 118 static ProfileKeyedAPIFactory<InputAPI>* GetFactoryInstance();
117 119
118 private: 120 private:
119 friend class ProfileKeyedAPIFactory<InputAPI>; 121 friend class ProfileKeyedAPIFactory<InputAPI>;
120 122
121 // ProfileKeyedAPI implementation. 123 // ProfileKeyedAPI implementation.
122 static const char* service_name() { 124 static const char* service_name() {
123 return "InputAPI"; 125 return "InputAPI";
124 } 126 }
125 static const bool kServiceIsNULLWhileTesting = true; 127 static const bool kServiceIsNULLWhileTesting = true;
126 }; 128 };
127 129
128 } // namespace extensions 130 } // namespace extensions
129 131
130 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_INPUT_H_ 132 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_INPUT_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/image_writer_private/operation_manager.cc ('k') | chrome/browser/extensions/api/input/input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698