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

Side by Side Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.cc

Issue 7709020: Moving the ViewHostMsg_PDFHasUnsupportedFeature IPC message to Chrome as PDF is a chrome specific (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/common/render_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 5 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 bool handled = true; 426 bool handled = true;
427 IPC_BEGIN_MESSAGE_MAP(TabContentsWrapper, message) 427 IPC_BEGIN_MESSAGE_MAP(TabContentsWrapper, message)
428 IPC_MESSAGE_HANDLER(ViewHostMsg_JSOutOfMemory, OnJSOutOfMemory) 428 IPC_MESSAGE_HANDLER(ViewHostMsg_JSOutOfMemory, OnJSOutOfMemory)
429 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, 429 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler,
430 OnRegisterProtocolHandler) 430 OnRegisterProtocolHandler)
431 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterIntentHandler, 431 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterIntentHandler,
432 OnRegisterIntentHandler) 432 OnRegisterIntentHandler)
433 IPC_MESSAGE_HANDLER(ViewHostMsg_WebIntentDispatch, 433 IPC_MESSAGE_HANDLER(ViewHostMsg_WebIntentDispatch,
434 OnWebIntentDispatch) 434 OnWebIntentDispatch)
435 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_Snapshot, OnSnapshot) 435 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_Snapshot, OnSnapshot)
436 IPC_MESSAGE_HANDLER(ViewHostMsg_PDFHasUnsupportedFeature, 436 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_PDFHasUnsupportedFeature,
437 OnPDFHasUnsupportedFeature) 437 OnPDFHasUnsupportedFeature)
438 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_DidBlockDisplayingInsecureContent, 438 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_DidBlockDisplayingInsecureContent,
439 OnDidBlockDisplayingInsecureContent) 439 OnDidBlockDisplayingInsecureContent)
440 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_DidBlockRunningInsecureContent, 440 IPC_MESSAGE_HANDLER(ChromeViewHostMsg_DidBlockRunningInsecureContent,
441 OnDidBlockRunningInsecureContent) 441 OnDidBlockRunningInsecureContent)
442 IPC_MESSAGE_UNHANDLED(handled = false) 442 IPC_MESSAGE_UNHANDLED(handled = false)
443 IPC_END_MESSAGE_MAP() 443 IPC_END_MESSAGE_MAP()
444 return handled; 444 return handled;
445 } 445 }
446 446
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 if (infobars_.empty()) { 762 if (infobars_.empty()) {
763 registrar_.Remove(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED, 763 registrar_.Remove(this, content::NOTIFICATION_NAV_ENTRY_COMMITTED,
764 Source<NavigationController>(&tab_contents_->controller())); 764 Source<NavigationController>(&tab_contents_->controller()));
765 } 765 }
766 } 766 }
767 767
768 void TabContentsWrapper::RemoveAllInfoBars(bool animate) { 768 void TabContentsWrapper::RemoveAllInfoBars(bool animate) {
769 while (!infobars_.empty()) 769 while (!infobars_.empty())
770 RemoveInfoBarInternal(GetInfoBarDelegateAt(infobar_count() - 1), animate); 770 RemoveInfoBarInternal(GetInfoBarDelegateAt(infobar_count() - 1), animate);
771 } 771 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698