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

Side by Side Diff: chrome/browser/extensions/external_component_loader.h

Issue 68173031: Added enhanced bookmarks extension as an external component extension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_EXTERNAL_COMPONENT_LOADER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_COMPONENT_LOADER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_COMPONENT_LOADER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_COMPONENT_LOADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/extensions/external_loader.h" 11 #include "chrome/browser/extensions/external_loader.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 // A specialization of the ExternalLoader that loads a hard-coded list of 15 // A specialization of the ExternalLoader that loads a hard-coded list of
16 // external extensions, that should be considered components of chrome (but 16 // external extensions, that should be considered components of chrome (but
17 // unlike Component extensions, these extensions are installed from the webstore 17 // unlike Component extensions, these extensions are installed from the webstore
18 // and don't get access to component only APIs. 18 // and don't get access to component only APIs.
19 // Instances of this class are expected to be created and destroyed on the UI 19 // Instances of this class are expected to be created and destroyed on the UI
20 // thread and they are expecting public method calls from the UI thread. 20 // thread and they are expecting public method calls from the UI thread.
21 class ExternalComponentLoader : public ExternalLoader { 21 class ExternalComponentLoader : public ExternalLoader {
22 public: 22 public:
23 ExternalComponentLoader(); 23 ExternalComponentLoader();
24 24
25 static bool IsEnhancedBookmarksExperimentEnabled();
Finnur 2013/11/22 10:31:57 It feels a bit hacky to have this be part of the E
yefimt 2013/11/22 19:01:43 I feel the same, but the problem is all code is in
Finnur 2013/11/22 19:04:48 Can you document this function and the fact that i
26
25 protected: 27 protected:
26 virtual void StartLoading() OVERRIDE; 28 virtual void StartLoading() OVERRIDE;
27 29
28 private: 30 private:
29 friend class base::RefCountedThreadSafe<ExternalLoader>; 31 friend class base::RefCountedThreadSafe<ExternalLoader>;
30 virtual ~ExternalComponentLoader(); 32 virtual ~ExternalComponentLoader();
31 33
32 DISALLOW_COPY_AND_ASSIGN(ExternalComponentLoader); 34 DISALLOW_COPY_AND_ASSIGN(ExternalComponentLoader);
33 }; 35 };
34 36
35 } // namespace extensions 37 } // namespace extensions
36 38
37 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_COMPONENT_LOADER_H_ 39 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_COMPONENT_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698