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

Side by Side Diff: chrome/browser/ui/intents/web_intent_picker_controller.cc

Issue 10703142: Move WebstoreInstaller, WebstoreInlineInstaller, related in extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest merge with master for cq Created 8 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
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_controller.h ('k') | no next file » | 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) 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 #include "chrome/browser/ui/intents/web_intent_picker_controller.h" 5 #include "chrome/browser/ui/intents/web_intent_picker_controller.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 30 matching lines...) Expand all
41 #include "net/base/load_flags.h" 41 #include "net/base/load_flags.h"
42 #include "net/url_request/url_fetcher.h" 42 #include "net/url_request/url_fetcher.h"
43 #include "net/url_request/url_fetcher_delegate.h" 43 #include "net/url_request/url_fetcher_delegate.h"
44 #include "skia/ext/image_operations.h" 44 #include "skia/ext/image_operations.h"
45 #include "ui/base/l10n/l10n_util.h" 45 #include "ui/base/l10n/l10n_util.h"
46 #include "ui/gfx/codec/png_codec.h" 46 #include "ui/gfx/codec/png_codec.h"
47 #include "ui/gfx/favicon_size.h" 47 #include "ui/gfx/favicon_size.h"
48 #include "ui/gfx/image/image.h" 48 #include "ui/gfx/image/image.h"
49 #include "webkit/glue/web_intent_service_data.h" 49 #include "webkit/glue/web_intent_service_data.h"
50 50
51 using extensions::WebstoreInstaller;
52
51 namespace { 53 namespace {
52 54
53 const char kShareActionURL[] = "http://webintents.org/share"; 55 const char kShareActionURL[] = "http://webintents.org/share";
54 const char kEditActionURL[] = "http://webintents.org/edit"; 56 const char kEditActionURL[] = "http://webintents.org/edit";
55 const char kViewActionURL[] = "http://webintents.org/view"; 57 const char kViewActionURL[] = "http://webintents.org/view";
56 const char kPickActionURL[] = "http://webintents.org/pick"; 58 const char kPickActionURL[] = "http://webintents.org/pick";
57 const char kSubscribeActionURL[] = "http://webintents.org/subscribe"; 59 const char kSubscribeActionURL[] = "http://webintents.org/subscribe";
58 const char kSaveActionURL[] = "http://webintents.org/save"; 60 const char kSaveActionURL[] = "http://webintents.org/save";
59 61
60 // Gets the favicon service for the profile in |tab_contents|. 62 // Gets the favicon service for the profile in |tab_contents|.
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 // If picker is non-NULL, it was set by a test. 710 // If picker is non-NULL, it was set by a test.
709 if (picker_ == NULL) 711 if (picker_ == NULL)
710 picker_ = WebIntentPicker::Create(tab_contents_, this, picker_model_.get()); 712 picker_ = WebIntentPicker::Create(tab_contents_, this, picker_model_.get());
711 picker_shown_ = true; 713 picker_shown_ = true;
712 } 714 }
713 715
714 void WebIntentPickerController::ClosePicker() { 716 void WebIntentPickerController::ClosePicker() {
715 if (picker_) 717 if (picker_)
716 picker_->Close(); 718 picker_->Close();
717 } 719 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698