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

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: HasPermission function moved 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) 526 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset)
527 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) 527 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits)
528 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) 528 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory)
529 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, 529 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler,
530 OnRegisterProtocolHandler) 530 OnRegisterProtocolHandler)
531 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) 531 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply)
532 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) 532 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed)
533 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) 533 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend)
534 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, 534 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission,
535 OnRequestPpapiBrokerPermission) 535 OnRequestPpapiBrokerPermission)
536 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_AllocateInstanceID,
537 OnBrowserPluginMessage(message))
538 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach, 536 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginHostMsg_Attach,
539 OnBrowserPluginMessage(message)) 537 OnBrowserPluginMessage(message))
540 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage) 538 IPC_MESSAGE_HANDLER(ImageHostMsg_DidDownloadImage, OnDidDownloadImage)
541 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL) 539 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFaviconURL, OnUpdateFaviconURL)
542 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, 540 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint,
543 OnFirstVisuallyNonEmptyPaint) 541 OnFirstVisuallyNonEmptyPaint)
544 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage, 542 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowValidationMessage,
545 OnShowValidationMessage) 543 OnShowValidationMessage)
546 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage, 544 IPC_MESSAGE_HANDLER(ViewHostMsg_HideValidationMessage,
547 OnHideValidationMessage) 545 OnHideValidationMessage)
(...skipping 3502 matching lines...) Expand 10 before | Expand all | Expand 10 after
4050 4048
4051 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { 4049 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) {
4052 if (!delegate_) 4050 if (!delegate_)
4053 return; 4051 return;
4054 const gfx::Size new_size = GetPreferredSize(); 4052 const gfx::Size new_size = GetPreferredSize();
4055 if (new_size != old_size) 4053 if (new_size != old_size)
4056 delegate_->UpdatePreferredSize(this, new_size); 4054 delegate_->UpdatePreferredSize(this, new_size);
4057 } 4055 }
4058 4056
4059 } // namespace content 4057 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/common/browser_plugin/browser_plugin_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698