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

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

Issue 300005: Correctly handle extension reloading in the task manager.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_EXTENSION_BROWSERTEST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 20 matching lines...) Expand all
31 return InstallOrUpdateExtension("", path, expected_change); 31 return InstallOrUpdateExtension("", path, expected_change);
32 } 32 }
33 33
34 // Same as above but calls ExtensionsService::UpdateExtension instead of 34 // Same as above but calls ExtensionsService::UpdateExtension instead of
35 // InstallExtension(). 35 // InstallExtension().
36 bool UpdateExtension(const std::string& id, const FilePath& path, 36 bool UpdateExtension(const std::string& id, const FilePath& path,
37 int expected_change) { 37 int expected_change) {
38 return InstallOrUpdateExtension(id, path, expected_change); 38 return InstallOrUpdateExtension(id, path, expected_change);
39 } 39 }
40 40
41 void ReloadExtension(const std::string& extension_id);
42
41 void UnloadExtension(const std::string& extension_id); 43 void UnloadExtension(const std::string& extension_id);
42 44
43 void UninstallExtension(const std::string& extension_id); 45 void UninstallExtension(const std::string& extension_id);
44 46
45 // Wait for the total number of page actions to change to |count|. 47 // Wait for the total number of page actions to change to |count|.
46 bool WaitForPageActionCountChangeTo(int count); 48 bool WaitForPageActionCountChangeTo(int count);
47 49
48 // Wait for the number of visible page actions to change to |count|. 50 // Wait for the number of visible page actions to change to |count|.
49 bool WaitForPageActionVisibilityChangeTo(int count); 51 bool WaitForPageActionVisibilityChangeTo(int count);
50 52
(...skipping 17 matching lines...) Expand all
68 int extension_installs_observed_; 70 int extension_installs_observed_;
69 71
70 private: 72 private:
71 bool InstallOrUpdateExtension(const std::string& id, const FilePath& path, 73 bool InstallOrUpdateExtension(const std::string& id, const FilePath& path,
72 int expected_change); 74 int expected_change);
73 75
74 bool WaitForExtensionHostsToLoad(); 76 bool WaitForExtensionHostsToLoad();
75 }; 77 };
76 78
77 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ 79 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698