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

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

Issue 299753011: Move allocate instance id to chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 6 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
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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) 523 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset)
524 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) 524 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits)
525 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) 525 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory)
526 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, 526 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler,
527 OnRegisterProtocolHandler) 527 OnRegisterProtocolHandler)
528 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) 528 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply)
529 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) 529 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed)
530 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) 530 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend)
531 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, 531 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission,
532 OnRequestPpapiBrokerPermission) 532 OnRequestPpapiBrokerPermission)
533 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_AllocateInstanceID,
534 OnBrowserPluginMessage(message))
535 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, 533 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach,
536 OnBrowserPluginMessage(message)) 534 OnBrowserPluginMessage(message))
537 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) 535 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage)
538 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) 536 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL)
539 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, 537 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint,
540 OnFirstVisuallyNonEmptyPaint) 538 OnFirstVisuallyNonEmptyPaint)
541 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, 539 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage,
542 OnShowValidationMessage) 540 OnShowValidationMessage)
543 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, 541 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage,
544 OnHideValidationMessage) 542 OnHideValidationMessage)
(...skipping 3526 matching lines...) Expand 10 before | Expand all | Expand 10 after
4071 4069
4072 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { 4070 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) {
4073 if (!delegate_) 4071 if (!delegate_)
4074 return; 4072 return;
4075 const gfx::Size new_size = GetPreferredSize(); 4073 const gfx::Size new_size = GetPreferredSize();
4076 if (new_size != old_size) 4074 if (new_size != old_size)
4077 delegate_->UpdatePreferredSize(this, new_size); 4075 delegate_->UpdatePreferredSize(this, new_size);
4078 } 4076 }
4079 4077
4080 } // namespace content 4078 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698