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

Side by Side Diff: chrome/browser/sync/test/integration/sync_extension_helper.h

Issue 12578008: Move CrxFile, FileReader, ExtensionResource to src/extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/singleton.h" 15 #include "base/memory/singleton.h"
16 #include "chrome/common/extensions/manifest.h" 16 #include "chrome/common/extensions/manifest.h"
17 17
18 class Profile; 18 class Profile;
19 class SyncTest; 19 class SyncTest;
20 20
21 namespace extensions { 21 namespace extensions {
22 class Extension; 22 class Extension;
23 } 23 }
24 24
25 class SyncExtensionHelper { 25 class SyncExtensionHelper {
26 public: 26 public:
27 // Singleton implementation. 27 // Singleton implementation.
28 static SyncExtensionHelper* GetInstance(); 28 static SyncExtensionHelper* GetInstance();
29 29
30 // Returns a generated extension ID for the given name.
31 static std::string NameToId(const std::string& name);
32
33 // Initializes the profiles in |test| and registers them with 30 // Initializes the profiles in |test| and registers them with
34 // internal data structures. 31 // internal data structures.
35 void SetupIfNecessary(SyncTest* test); 32 void SetupIfNecessary(SyncTest* test);
36 33
37 // Installs the extension with the given name to |profile|, and returns the 34 // Installs the extension with the given name to |profile|, and returns the
38 // extension ID of the new extension. 35 // extension ID of the new extension.
39 std::string InstallExtension(Profile* profile, 36 std::string InstallExtension(Profile* profile,
40 const std::string& name, 37 const std::string& name,
41 extensions::Manifest::Type type); 38 extensions::Manifest::Type type);
42 39
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 115
119 ProfileExtensionNameMap profile_extensions_; 116 ProfileExtensionNameMap profile_extensions_;
120 StringMap id_to_name_; 117 StringMap id_to_name_;
121 TypeMap id_to_type_; 118 TypeMap id_to_type_;
122 bool setup_completed_; 119 bool setup_completed_;
123 120
124 DISALLOW_COPY_AND_ASSIGN(SyncExtensionHelper); 121 DISALLOW_COPY_AND_ASSIGN(SyncExtensionHelper);
125 }; 122 };
126 123
127 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_ 124 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sync_app_helper.cc ('k') | chrome/browser/sync/test/integration/sync_extension_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698