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

Side by Side Diff: chrome/browser/extensions/api/url_handlers/url_handlers_api.h

Issue 22944002: Implementation of the "Redirect URLs to Packaged Apps" feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review comments + lint errors Created 7 years, 3 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.
benwells 2013/08/30 05:41:39 Nit: copyright for all new files should be 2013 (a
sergeygs 2013/09/02 07:36:22 This source disappears in the reworked CL.
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_FILE_HANDLERS_FILE_HANDLERS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_URL_HANDLERS_URL_HANDLERS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_FILE_HANDLERS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_URL_HANDLERS_URL_HANDLERS_API_H_
7 7
8 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" 8 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
9 9
10 class Profile; 10 class Profile;
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class FileHandlersAPI : public ProfileKeyedAPI { 14 class UrlHandlersAPI : public ProfileKeyedAPI {
15 public: 15 public:
16 explicit FileHandlersAPI(Profile* profile); 16 explicit UrlHandlersAPI(Profile* profile);
17 virtual ~FileHandlersAPI(); 17 virtual ~UrlHandlersAPI();
18 18
19 // ProfileKeyedAPI implementation. 19 // ProfileKeyedAPI implementation.
20 static ProfileKeyedAPIFactory<FileHandlersAPI>* GetFactoryInstance(); 20 static ProfileKeyedAPIFactory<UrlHandlersAPI>* GetFactoryInstance();
21 21
22 private: 22 private:
23 friend class ProfileKeyedAPIFactory<FileHandlersAPI>; 23 friend class ProfileKeyedAPIFactory<UrlHandlersAPI>;
24 24
25 // ProfileKeyedAPI implementation. 25 // ProfileKeyedAPI implementation.
26 static const char* service_name() { 26 static const char* service_name() {
27 return "FileHandlersAPI"; 27 return "UrlHandlersAPI";
28 } 28 }
29 static const bool kServiceIsNULLWhileTesting = true; 29 static const bool kServiceIsNULLWhileTesting = true;
30 }; 30 };
31 31
32 } // namespace extensions 32 } // namespace extensions
33 33
34 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_FILE_HANDLERS_API_H_ 34 #endif // CHROME_BROWSER_EXTENSIONS_API_URL_HANDLERS_URL_HANDLERS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698