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

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

Issue 78303005: ContentSettings API should not interact with <webview> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 7 years 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
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/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 1536
1537 SessionStorageNamespace* WebContentsImpl::GetSessionStorageNamespace( 1537 SessionStorageNamespace* WebContentsImpl::GetSessionStorageNamespace(
1538 SiteInstance* instance) { 1538 SiteInstance* instance) {
1539 return controller_.GetSessionStorageNamespace(instance); 1539 return controller_.GetSessionStorageNamespace(instance);
1540 } 1540 }
1541 1541
1542 FrameTree* WebContentsImpl::GetFrameTree() { 1542 FrameTree* WebContentsImpl::GetFrameTree() {
1543 return &frame_tree_; 1543 return &frame_tree_;
1544 } 1544 }
1545 1545
1546 bool WebContentsImpl::IsGuest() const {
1547 return !!GetBrowserPluginGuest();
1548 }
1549
1546 void WebContentsImpl::DidSendScreenRects(RenderWidgetHostImpl* rwh) { 1550 void WebContentsImpl::DidSendScreenRects(RenderWidgetHostImpl* rwh) {
1547 if (browser_plugin_embedder_) 1551 if (browser_plugin_embedder_)
1548 browser_plugin_embedder_->DidSendScreenRects(); 1552 browser_plugin_embedder_->DidSendScreenRects();
1549 } 1553 }
1550 1554
1551 void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) { 1555 void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) {
1552 preferred_size_ = pref_size; 1556 preferred_size_ = pref_size;
1553 if (delegate_) 1557 if (delegate_)
1554 delegate_->UpdatePreferredSize(this, pref_size); 1558 delegate_->UpdatePreferredSize(this, pref_size);
1555 } 1559 }
(...skipping 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after
3700 } 3704 }
3701 3705
3702 void WebContentsImpl::OnFrameRemoved( 3706 void WebContentsImpl::OnFrameRemoved(
3703 RenderViewHostImpl* render_view_host, 3707 RenderViewHostImpl* render_view_host,
3704 int64 frame_id) { 3708 int64 frame_id) {
3705 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 3709 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
3706 FrameDetached(render_view_host, frame_id)); 3710 FrameDetached(render_view_host, frame_id));
3707 } 3711 }
3708 3712
3709 } // namespace content 3713 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698