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

Side by Side Diff: content/browser/tab_contents/tab_contents.cc

Issue 6883020: Make icon_messages use the IPC macros for defining the structs and the serialization code, and mo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « content/browser/renderer_host/render_view_host.cc ('k') | content/renderer/render_view.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 "content/browser/tab_contents/tab_contents.h" 5 #include "content/browser/tab_contents/tab_contents.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" 51 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
52 #include "chrome/browser/tab_contents/thumbnail_generator.h" 52 #include "chrome/browser/tab_contents/thumbnail_generator.h"
53 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h" 53 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h"
54 #include "chrome/browser/ui/browser_dialogs.h" 54 #include "chrome/browser/ui/browser_dialogs.h"
55 #include "chrome/common/chrome_constants.h" 55 #include "chrome/common/chrome_constants.h"
56 #include "chrome/common/chrome_switches.h" 56 #include "chrome/common/chrome_switches.h"
57 #include "chrome/common/content_restriction.h" 57 #include "chrome/common/content_restriction.h"
58 #include "chrome/common/extensions/extension.h" 58 #include "chrome/common/extensions/extension.h"
59 #include "chrome/common/extensions/extension_messages.h" 59 #include "chrome/common/extensions/extension_messages.h"
60 #include "chrome/common/extensions/url_pattern.h" 60 #include "chrome/common/extensions/url_pattern.h"
61 #include "chrome/common/icon_messages.h"
61 #include "chrome/common/pref_names.h" 62 #include "chrome/common/pref_names.h"
62 #include "chrome/common/render_messages.h" 63 #include "chrome/common/render_messages.h"
63 #include "chrome/common/url_constants.h" 64 #include "chrome/common/url_constants.h"
64 #include "content/browser/child_process_security_policy.h" 65 #include "content/browser/child_process_security_policy.h"
65 #include "content/browser/content_browser_client.h" 66 #include "content/browser/content_browser_client.h"
66 #include "content/browser/host_zoom_map.h" 67 #include "content/browser/host_zoom_map.h"
67 #include "content/browser/in_process_webkit/session_storage_namespace.h" 68 #include "content/browser/in_process_webkit/session_storage_namespace.h"
68 #include "content/browser/renderer_host/render_process_host.h" 69 #include "content/browser/renderer_host/render_process_host.h"
69 #include "content/browser/renderer_host/render_view_host.h" 70 #include "content/browser/renderer_host/render_view_host.h"
70 #include "content/browser/renderer_host/render_widget_host_view.h" 71 #include "content/browser/renderer_host/render_widget_host_view.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, 409 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent,
409 OnDidRunInsecureContent) 410 OnDidRunInsecureContent)
410 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentLoadedInFrame, 411 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentLoadedInFrame,
411 OnDocumentLoadedInFrame) 412 OnDocumentLoadedInFrame)
412 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFinishLoad, OnDidFinishLoad) 413 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFinishLoad, OnDidFinishLoad)
413 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateContentRestrictions, 414 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateContentRestrictions,
414 OnUpdateContentRestrictions) 415 OnUpdateContentRestrictions)
415 IPC_MESSAGE_HANDLER(ViewHostMsg_PDFHasUnsupportedFeature, 416 IPC_MESSAGE_HANDLER(ViewHostMsg_PDFHasUnsupportedFeature,
416 OnPDFHasUnsupportedFeature) 417 OnPDFHasUnsupportedFeature)
417 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) 418 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset)
418 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) 419 IPC_MESSAGE_HANDLER(IconHostMsg_UpdateFaviconURL, OnUpdateFaviconURL)
419 IPC_MESSAGE_UNHANDLED(handled = false) 420 IPC_MESSAGE_UNHANDLED(handled = false)
420 IPC_END_MESSAGE_MAP_EX() 421 IPC_END_MESSAGE_MAP_EX()
421 422
422 if (!message_is_ok) { 423 if (!message_is_ok) {
423 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_RVD")); 424 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_RVD"));
424 GetRenderProcessHost()->ReceivedBadMessage(); 425 GetRenderProcessHost()->ReceivedBadMessage();
425 } 426 }
426 427
427 return handled; 428 return handled;
428 } 429 }
(...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after
2525 2526
2526 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2527 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2527 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); 2528 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh);
2528 rwh_view->SetSize(view()->GetContainerSize()); 2529 rwh_view->SetSize(view()->GetContainerSize());
2529 } 2530 }
2530 2531
2531 void TabContents::OnOnlineStateChanged(bool online) { 2532 void TabContents::OnOnlineStateChanged(bool online) {
2532 render_view_host()->Send(new ViewMsg_NetworkStateChanged( 2533 render_view_host()->Send(new ViewMsg_NetworkStateChanged(
2533 render_view_host()->routing_id(), online)); 2534 render_view_host()->routing_id(), online));
2534 } 2535 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698