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

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

Issue 384823002: Introduce a stable set of errors for inline install (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace printf with vlog(1) in unrelated code so it passes presubmit Created 6 years, 5 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_EXTENSIONS_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "chrome/browser/extensions/active_tab_permission_granter.h" 17 #include "chrome/browser/extensions/active_tab_permission_granter.h"
18 #include "chrome/common/extensions/webstore_install_result.h"
18 #include "chrome/common/web_application_info.h" 19 #include "chrome/common/web_application_info.h"
19 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_registrar.h" 21 #include "content/public/browser/notification_registrar.h"
21 #include "content/public/browser/web_contents_observer.h" 22 #include "content/public/browser/web_contents_observer.h"
22 #include "content/public/browser/web_contents_user_data.h" 23 #include "content/public/browser/web_contents_user_data.h"
23 #include "extensions/browser/extension_function_dispatcher.h" 24 #include "extensions/browser/extension_function_dispatcher.h"
24 #include "extensions/common/stack_frame.h" 25 #include "extensions/common/stack_frame.h"
25 #include "third_party/skia/include/core/SkBitmap.h" 26 #include "third_party/skia/include/core/SkBitmap.h"
26 27
27 class FaviconDownloader; 28 class FaviconDownloader;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 void UpdateExtensionAppIcon(const Extension* extension); 218 void UpdateExtensionAppIcon(const Extension* extension);
218 219
219 const Extension* GetExtension(const std::string& extension_app_id); 220 const Extension* GetExtension(const std::string& extension_app_id);
220 221
221 void OnImageLoaded(const gfx::Image& image); 222 void OnImageLoaded(const gfx::Image& image);
222 223
223 // WebstoreStandaloneInstaller::Callback. 224 // WebstoreStandaloneInstaller::Callback.
224 virtual void OnInlineInstallComplete(int install_id, 225 virtual void OnInlineInstallComplete(int install_id,
225 int return_route_id, 226 int return_route_id,
226 bool success, 227 bool success,
227 const std::string& error); 228 const std::string& error,
229 webstore_install::Result result);
228 230
229 // content::NotificationObserver. 231 // content::NotificationObserver.
230 virtual void Observe(int type, 232 virtual void Observe(int type,
231 const content::NotificationSource& source, 233 const content::NotificationSource& source,
232 const content::NotificationDetails& details) OVERRIDE; 234 const content::NotificationDetails& details) OVERRIDE;
233 235
234 // Requests application info for the specified page. This is an asynchronous 236 // Requests application info for the specified page. This is an asynchronous
235 // request. The delegate is notified by way of OnDidGetApplicationInfo when 237 // request. The delegate is notified by way of OnDidGetApplicationInfo when
236 // the data is available. 238 // the data is available.
237 void GetApplicationInfo(WebAppAction action); 239 void GetApplicationInfo(WebAppAction action);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 289
288 // Creates WebstoreInlineInstaller instances for inline install triggers. 290 // Creates WebstoreInlineInstaller instances for inline install triggers.
289 scoped_ptr<WebstoreInlineInstallerFactory> webstore_inline_installer_factory_; 291 scoped_ptr<WebstoreInlineInstallerFactory> webstore_inline_installer_factory_;
290 292
291 DISALLOW_COPY_AND_ASSIGN(TabHelper); 293 DISALLOW_COPY_AND_ASSIGN(TabHelper);
292 }; 294 };
293 295
294 } // namespace extensions 296 } // namespace extensions
295 297
296 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_ 298 #endif // CHROME_BROWSER_EXTENSIONS_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698