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

Side by Side Diff: content/browser/web_contents/navigation_entry_impl.cc

Issue 12052023: Add "frame to navigate" to NavigationEntry and plumb it to the RenderViewImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 7 years, 11 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
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 "content/browser/web_contents/navigation_entry_impl.h" 5 #include "content/browser/web_contents/navigation_entry_impl.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "content/public/common/content_constants.h" 9 #include "content/public/common/content_constants.h"
10 #include "content/public/common/url_constants.h" 10 #include "content/public/common/url_constants.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 } 264 }
265 265
266 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { 266 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) {
267 can_load_local_resources_ = allow; 267 can_load_local_resources_ = allow;
268 } 268 }
269 269
270 bool NavigationEntryImpl::GetCanLoadLocalResources() const { 270 bool NavigationEntryImpl::GetCanLoadLocalResources() const {
271 return can_load_local_resources_; 271 return can_load_local_resources_;
272 } 272 }
273 273
274 void NavigationEntryImpl::SetFrameToNavigate(const std::string& frame_name) {
275 frame_to_navigate_ = frame_name;
276 }
277
278 const std::string& NavigationEntryImpl::GetFrameToNavigate() const {
279 return frame_to_navigate_;
280 }
281
274 void NavigationEntryImpl::SetScreenshotPNGData( 282 void NavigationEntryImpl::SetScreenshotPNGData(
275 const std::vector<unsigned char>& png_data) { 283 const std::vector<unsigned char>& png_data) {
276 screenshot_ = png_data.empty() ? NULL : new base::RefCountedBytes(png_data); 284 screenshot_ = png_data.empty() ? NULL : new base::RefCountedBytes(png_data);
277 } 285 }
278 286
279 } // namespace content 287 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/navigation_entry_impl.h ('k') | content/browser/web_contents/navigation_entry_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698