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

Side by Side Diff: chrome/browser/ui/intents/web_intent_picker_model.h

Issue 11087022: intents: Change default_service_url() to return a const-ref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm virtual dtor Created 8 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/ui/intents/web_intents_model.h » ('j') | 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 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void set_observer(WebIntentPickerModelObserver* observer) { 69 void set_observer(WebIntentPickerModelObserver* observer) {
70 observer_ = observer; 70 observer_ = observer;
71 } 71 }
72 72
73 const string16& action() const { return action_; } 73 const string16& action() const { return action_; }
74 void set_action(const string16& action) { action_ = action; } 74 void set_action(const string16& action) { action_ = action; }
75 75
76 const string16& type() const { return type_; } 76 const string16& type() const { return type_; }
77 void set_type(const string16& type) { type_ = type; } 77 void set_type(const string16& type) { type_ = type; }
78 78
79 GURL default_service_url() const { return default_service_url_; } 79 const GURL& default_service_url() const { return default_service_url_; }
80 void set_default_service_url(const GURL& default_url) { 80 void set_default_service_url(const GURL& default_url) {
81 default_service_url_ = default_url; 81 default_service_url_ = default_url;
82 } 82 }
83 83
84 int64 default_service_hash() const { return default_service_hash_; } 84 int64 default_service_hash() const { return default_service_hash_; }
85 void set_default_service_hash(int64 default_service_hash) { 85 void set_default_service_hash(int64 default_service_hash) {
86 default_service_hash_ = default_service_hash; 86 default_service_hash_ = default_service_hash;
87 } 87 }
88 88
89 // Add a new installed service with |title|, |url| and |disposition| to the 89 // Add a new installed service with |title|, |url| and |disposition| to the
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 // Information about the pending extension install. 221 // Information about the pending extension install.
222 std::string pending_extension_install_id_; 222 std::string pending_extension_install_id_;
223 int pending_extension_install_download_progress_; 223 int pending_extension_install_download_progress_;
224 string16 pending_extension_install_status_string_; 224 string16 pending_extension_install_status_string_;
225 225
226 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel); 226 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerModel);
227 }; 227 };
228 228
229 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_ 229 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/intents/web_intents_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698