OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/extensions/webstore_inline_installer.h" | 5 #include "chrome/browser/extensions/webstore_inline_installer.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/extensions/crx_installer.h" | 13 #include "chrome/browser/extensions/crx_installer.h" |
14 #include "chrome/browser/extensions/extension_install_dialog.h" | 14 #include "chrome/browser/extensions/extension_install_dialog.h" |
15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/common/chrome_utility_messages.h" | 17 #include "chrome/common/chrome_utility_messages.h" |
18 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
19 #include "chrome/common/extensions/extension_constants.h" | 19 #include "chrome/common/extensions/extension_constants.h" |
20 #include "chrome/common/extensions/url_pattern.h" | 20 #include "chrome/common/extensions/url_pattern.h" |
21 #include "content/browser/tab_contents/tab_contents.h" | 21 #include "content/browser/tab_contents/tab_contents.h" |
22 #include "content/browser/utility_process_host.h" | 22 #include "content/browser/utility_process_host.h" |
| 23 #include "content/common/net/url_fetcher.h" |
23 #include "net/base/escape.h" | 24 #include "net/base/escape.h" |
24 #include "net/base/load_flags.h" | 25 #include "net/base/load_flags.h" |
25 #include "net/url_request/url_request_status.h" | 26 #include "net/url_request/url_request_status.h" |
26 | 27 |
27 const char kManifestKey[] = "manifest"; | 28 const char kManifestKey[] = "manifest"; |
28 const char kIconUrlKey[] = "icon_url"; | 29 const char kIconUrlKey[] = "icon_url"; |
29 const char kLocalizedNameKey[] = "localized_name"; | 30 const char kLocalizedNameKey[] = "localized_name"; |
30 const char kLocalizedDescriptionKey[] = "localized_description"; | 31 const char kLocalizedDescriptionKey[] = "localized_description"; |
31 const char kUsersKey[] = "users"; | 32 const char kUsersKey[] = "users"; |
32 const char kAverageRatingKey[] = "average_rating"; | 33 const char kAverageRatingKey[] = "average_rating"; |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 if (tab_contents()) { | 415 if (tab_contents()) { |
415 if (error.empty()) { | 416 if (error.empty()) { |
416 delegate_->OnInlineInstallSuccess(install_id_); | 417 delegate_->OnInlineInstallSuccess(install_id_); |
417 } else { | 418 } else { |
418 delegate_->OnInlineInstallFailure(install_id_, error); | 419 delegate_->OnInlineInstallFailure(install_id_, error); |
419 } | 420 } |
420 } | 421 } |
421 | 422 |
422 Release(); // Matches the AddRef in BeginInstall. | 423 Release(); // Matches the AddRef in BeginInstall. |
423 } | 424 } |
OLD | NEW |