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

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

Issue 11726002: Move the parsing of 'update_url' & 'options_page' URLs out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url_parse
Patch Set: fixed HomepageURLManifestTest.GetHomepageURL Created 7 years, 11 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
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_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 extensions::ExtensionHost* CreatePopupHost(const GURL& url, Browser* browser); 67 extensions::ExtensionHost* CreatePopupHost(const GURL& url, Browser* browser);
68 extensions::ExtensionHost* CreateDialogHost(const GURL& url); 68 extensions::ExtensionHost* CreateDialogHost(const GURL& url);
69 extensions::ExtensionHost* CreateInfobarHost( 69 extensions::ExtensionHost* CreateInfobarHost(
70 const extensions::Extension* extension, 70 const extensions::Extension* extension,
71 const GURL& url, 71 const GURL& url,
72 Browser* browser); 72 Browser* browser);
73 extensions::ExtensionHost* CreateInfobarHost(const GURL& url, 73 extensions::ExtensionHost* CreateInfobarHost(const GURL& url,
74 Browser* browser); 74 Browser* browser);
75 75
76 // Open the extension's options page. 76 // Open the extension's options page.
77 // TODO(yoz): Move this function to a more appropriate location.
78 // crbug.com/157279
77 void OpenOptionsPage(const extensions::Extension* extension, 79 void OpenOptionsPage(const extensions::Extension* extension,
78 Browser* browser); 80 Browser* browser);
79 81
80 // Creates a new UI-less extension instance. Like CreateViewHost, but not 82 // Creates a new UI-less extension instance. Like CreateViewHost, but not
81 // displayed anywhere. 83 // displayed anywhere.
82 virtual void CreateBackgroundHost(const extensions::Extension* extension, 84 virtual void CreateBackgroundHost(const extensions::Extension* extension,
83 const GURL& url); 85 const GURL& url);
84 86
85 // Gets the ExtensionHost for the background page for an extension, or NULL if 87 // Gets the ExtensionHost for the background page for an extension, or NULL if
86 // the extension isn't running or doesn't have a background page. 88 // the extension isn't running or doesn't have a background page.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // The time to delay between sending a ShouldUnload message and 211 // The time to delay between sending a ShouldUnload message and
210 // sending a Unload message; read from command-line switch. 212 // sending a Unload message; read from command-line switch.
211 base::TimeDelta event_page_unloading_time_; 213 base::TimeDelta event_page_unloading_time_;
212 214
213 base::WeakPtrFactory<ExtensionProcessManager> weak_ptr_factory_; 215 base::WeakPtrFactory<ExtensionProcessManager> weak_ptr_factory_;
214 216
215 DISALLOW_COPY_AND_ASSIGN(ExtensionProcessManager); 217 DISALLOW_COPY_AND_ASSIGN(ExtensionProcessManager);
216 }; 218 };
217 219
218 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_ 220 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PROCESS_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_context_menu_model.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698