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

Side by Side Diff: ui/base/dragdrop/os_exchange_data.cc

Issue 212693004: Merge 259353 "Mark drags starting in web content as tainted to a..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1847/src/
Patch Set: Created 6 years, 8 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 | « ui/base/dragdrop/os_exchange_data.h ('k') | ui/base/dragdrop/os_exchange_data_provider_aura.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 #include "ui/base/dragdrop/os_exchange_data.h" 5 #include "ui/base/dragdrop/os_exchange_data.h"
6 6
7 #include "base/pickle.h" 7 #include "base/pickle.h"
8 #include "url/gurl.h" 8 #include "url/gurl.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 18 matching lines...) Expand all
29 29
30 OSExchangeData::OSExchangeData() : provider_(CreateProvider()) { 30 OSExchangeData::OSExchangeData() : provider_(CreateProvider()) {
31 } 31 }
32 32
33 OSExchangeData::OSExchangeData(Provider* provider) : provider_(provider) { 33 OSExchangeData::OSExchangeData(Provider* provider) : provider_(provider) {
34 } 34 }
35 35
36 OSExchangeData::~OSExchangeData() { 36 OSExchangeData::~OSExchangeData() {
37 } 37 }
38 38
39 void OSExchangeData::MarkOriginatedFromRenderer() {
40 provider_->MarkOriginatedFromRenderer();
41 }
42
43 bool OSExchangeData::DidOriginateFromRenderer() const {
44 return provider_->DidOriginateFromRenderer();
45 }
46
39 void OSExchangeData::SetString(const base::string16& data) { 47 void OSExchangeData::SetString(const base::string16& data) {
40 provider_->SetString(data); 48 provider_->SetString(data);
41 } 49 }
42 50
43 void OSExchangeData::SetURL(const GURL& url, const base::string16& title) { 51 void OSExchangeData::SetURL(const GURL& url, const base::string16& title) {
44 provider_->SetURL(url, title); 52 provider_->SetURL(url, title);
45 } 53 }
46 54
47 void OSExchangeData::SetFilename(const base::FilePath& path) { 55 void OSExchangeData::SetFilename(const base::FilePath& path) {
48 provider_->SetFilename(path); 56 provider_->SetFilename(path);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 void OSExchangeData::SetHtml(const base::string16& html, const GURL& base_url) { 180 void OSExchangeData::SetHtml(const base::string16& html, const GURL& base_url) {
173 provider_->SetHtml(html, base_url); 181 provider_->SetHtml(html, base_url);
174 } 182 }
175 183
176 bool OSExchangeData::GetHtml(base::string16* html, GURL* base_url) const { 184 bool OSExchangeData::GetHtml(base::string16* html, GURL* base_url) const {
177 return provider_->GetHtml(html, base_url); 185 return provider_->GetHtml(html, base_url);
178 } 186 }
179 #endif 187 #endif
180 188
181 } // namespace ui 189 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data.h ('k') | ui/base/dragdrop/os_exchange_data_provider_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698