| OLD | NEW |
| 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_INSTALL_PROMPT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "chrome/browser/extensions/crx_installer_error.h" | 15 #include "chrome/browser/extensions/crx_installer_error.h" |
| 16 #include "extensions/common/url_pattern.h" | 16 #include "extensions/common/url_pattern.h" |
| 17 #include "google_apis/gaia/oauth2_mint_token_flow.h" | 17 #include "google_apis/gaia/oauth2_mint_token_flow.h" |
| 18 #include "third_party/skia/include/core/SkBitmap.h" | 18 #include "third_party/skia/include/core/SkBitmap.h" |
| 19 #include "ui/gfx/image/image.h" | 19 #include "ui/gfx/image/image.h" |
| 20 #include "ui/gfx/image/image_skia.h" | 20 #include "ui/gfx/image/image_skia.h" |
| 21 #include "ui/gfx/native_widget_types.h" | 21 #include "ui/gfx/native_widget_types.h" |
| 22 | 22 |
| 23 class Browser; | 23 class Browser; |
| 24 class ExtensionInstallUI; | 24 class ExtensionInstallUI; |
| 25 class InfoBarDelegate; | 25 class InfoBarDelegate; |
| 26 class MessageLoop; | |
| 27 class Profile; | 26 class Profile; |
| 28 | 27 |
| 29 namespace base { | 28 namespace base { |
| 30 class DictionaryValue; | 29 class DictionaryValue; |
| 30 class MessageLoop; |
| 31 } // namespace base | 31 } // namespace base |
| 32 | 32 |
| 33 namespace content { | 33 namespace content { |
| 34 class PageNavigator; | 34 class PageNavigator; |
| 35 class WebContents; | 35 class WebContents; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace extensions { | 38 namespace extensions { |
| 39 class BundleInstaller; | 39 class BundleInstaller; |
| 40 class Extension; | 40 class Extension; |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 329 |
| 330 // OAuth2MintTokenFlow::Delegate implementation: | 330 // OAuth2MintTokenFlow::Delegate implementation: |
| 331 virtual void OnIssueAdviceSuccess( | 331 virtual void OnIssueAdviceSuccess( |
| 332 const IssueAdviceInfo& issue_advice) OVERRIDE; | 332 const IssueAdviceInfo& issue_advice) OVERRIDE; |
| 333 virtual void OnMintTokenFailure( | 333 virtual void OnMintTokenFailure( |
| 334 const GoogleServiceAuthError& error) OVERRIDE; | 334 const GoogleServiceAuthError& error) OVERRIDE; |
| 335 | 335 |
| 336 // Shows the actual UI (the icon should already be loaded). | 336 // Shows the actual UI (the icon should already be loaded). |
| 337 void ShowConfirmation(); | 337 void ShowConfirmation(); |
| 338 | 338 |
| 339 MessageLoop* ui_loop_; | 339 base::MessageLoop* ui_loop_; |
| 340 | 340 |
| 341 // The extensions installation icon. | 341 // The extensions installation icon. |
| 342 SkBitmap icon_; | 342 SkBitmap icon_; |
| 343 | 343 |
| 344 // The extension we are showing the UI for, if type is not | 344 // The extension we are showing the UI for, if type is not |
| 345 // BUNDLE_INSTALL_PROMPT. | 345 // BUNDLE_INSTALL_PROMPT. |
| 346 const extensions::Extension* extension_; | 346 const extensions::Extension* extension_; |
| 347 | 347 |
| 348 // The bundle we are showing the UI for, if type BUNDLE_INSTALL_PROMPT. | 348 // The bundle we are showing the UI for, if type BUNDLE_INSTALL_PROMPT. |
| 349 const extensions::BundleInstaller* bundle_; | 349 const extensions::BundleInstaller* bundle_; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 363 // A pre-filled prompt. | 363 // A pre-filled prompt. |
| 364 Prompt prompt_; | 364 Prompt prompt_; |
| 365 | 365 |
| 366 scoped_ptr<OAuth2MintTokenFlow> token_flow_; | 366 scoped_ptr<OAuth2MintTokenFlow> token_flow_; |
| 367 | 367 |
| 368 // Used to show the confirm dialog. | 368 // Used to show the confirm dialog. |
| 369 ShowDialogCallback show_dialog_callback_; | 369 ShowDialogCallback show_dialog_callback_; |
| 370 }; | 370 }; |
| 371 | 371 |
| 372 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ | 372 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ |
| OLD | NEW |