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

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

Issue 1228713003: Move protocol registration from WebViewClient to WebFrameClient, part 1/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | content/common/frame_messages.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 "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/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 OnDidDisplayInsecureContent) 592 OnDidDisplayInsecureContent)
593 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, 593 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent,
594 OnDidRunInsecureContent) 594 OnDidRunInsecureContent)
595 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) 595 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset)
596 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) 596 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits)
597 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) 597 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory)
598 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, 598 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler,
599 OnRegisterProtocolHandler) 599 OnRegisterProtocolHandler)
600 IPC_MESSAGE_HANDLER(ViewHostMsg_UnregisterProtocolHandler, 600 IPC_MESSAGE_HANDLER(ViewHostMsg_UnregisterProtocolHandler,
601 OnUnregisterProtocolHandler) 601 OnUnregisterProtocolHandler)
602 IPC_MESSAGE_HANDLER(FrameHostMsg_RegisterProtocolHandler,
603 OnRegisterProtocolHandler)
604 IPC_MESSAGE_HANDLER(FrameHostMsg_UnregisterProtocolHandler,
605 OnUnregisterProtocolHandler)
602 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) 606 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply)
603 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) 607 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed)
604 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) 608 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend)
605 #if defined(ENABLE_PLUGINS) 609 #if defined(ENABLE_PLUGINS)
606 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperInstanceCreated, 610 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperInstanceCreated,
607 OnPepperInstanceCreated) 611 OnPepperInstanceCreated)
608 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperInstanceDeleted, 612 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperInstanceDeleted,
609 OnPepperInstanceDeleted) 613 OnPepperInstanceDeleted)
610 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperPluginHung, OnPepperPluginHung) 614 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperPluginHung, OnPepperPluginHung)
611 IPC_MESSAGE_HANDLER(FrameHostMsg_PluginCrashed, OnPluginCrashed) 615 IPC_MESSAGE_HANDLER(FrameHostMsg_PluginCrashed, OnPluginCrashed)
(...skipping 3877 matching lines...) Expand 10 before | Expand all | Expand 10 after
4489 player_map->erase(it); 4493 player_map->erase(it);
4490 } 4494 }
4491 4495
4492 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4496 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4493 force_disable_overscroll_content_ = force_disable; 4497 force_disable_overscroll_content_ = force_disable;
4494 if (view_) 4498 if (view_)
4495 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4499 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4496 } 4500 }
4497 4501
4498 } // namespace content 4502 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698