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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 140663003: Removed requirement for the renderer to know it's process ID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after long weekend Created 6 years, 11 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
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 543
544 // Don't check whether we expected a resize ack during layout tests. 544 // Don't check whether we expected a resize ack during layout tests.
545 static void DisableResizeAckCheckForTesting(); 545 static void DisableResizeAckCheckForTesting();
546 546
547 void WindowSnapshotAsyncCallback( 547 void WindowSnapshotAsyncCallback(
548 int routing_id, 548 int routing_id,
549 int snapshot_id, 549 int snapshot_id,
550 gfx::Size snapshot_size, 550 gfx::Size snapshot_size,
551 scoped_refptr<base::RefCountedBytes> png_data); 551 scoped_refptr<base::RefCountedBytes> png_data);
552 552
553 // LatencyComponents generated in the renderer must have component IDs
554 // provided to them by the browser process. This function adds the correct
555 // component ID where necessary.
556 void AddLatencyInfoComponentIds(ui::LatencyInfo* latency_info);
557
553 protected: 558 protected:
554 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; 559 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE;
555 560
556 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT 561 // Create a LatencyInfo struct with INPUT_EVENT_LATENCY_RWH_COMPONENT
557 // component if it is not already in |original|. And if |original| is 562 // component if it is not already in |original|. And if |original| is
558 // not NULL, it is also merged into the resulting LatencyInfo. 563 // not NULL, it is also merged into the resulting LatencyInfo.
559 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist( 564 ui::LatencyInfo CreateRWHLatencyInfoIfNotExist(
560 const ui::LatencyInfo* original, blink::WebInputEvent::Type type); 565 const ui::LatencyInfo* original, blink::WebInputEvent::Type type);
561 566
562 // Called when we receive a notification indicating that the renderer 567 // Called when we receive a notification indicating that the renderer
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 int64 last_input_number_; 931 int64 last_input_number_;
927 932
928 BrowserRenderingStats rendering_stats_; 933 BrowserRenderingStats rendering_stats_;
929 934
930 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 935 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
931 }; 936 };
932 937
933 } // namespace content 938 } // namespace content
934 939
935 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 940 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698