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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2447143003: Use kRenderClientId command line flag when starting a render process (Closed)
Patch Set: Added RenderThreadImpl::client_id_ to store client ID and avoid repetitive string parsing Created 4 years, 1 month 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
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | content/renderer/render_thread_impl.cc » ('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) 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_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 cc::SharedBitmapManager* GetSharedBitmapManager() override; 201 cc::SharedBitmapManager* GetSharedBitmapManager() override;
202 void RegisterExtension(v8::Extension* extension) override; 202 void RegisterExtension(v8::Extension* extension) override;
203 void ScheduleIdleHandler(int64_t initial_delay_ms) override; 203 void ScheduleIdleHandler(int64_t initial_delay_ms) override;
204 void IdleHandler() override; 204 void IdleHandler() override;
205 int64_t GetIdleNotificationDelayInMs() const override; 205 int64_t GetIdleNotificationDelayInMs() const override;
206 void SetIdleNotificationDelayInMs( 206 void SetIdleNotificationDelayInMs(
207 int64_t idle_notification_delay_in_ms) override; 207 int64_t idle_notification_delay_in_ms) override;
208 int PostTaskToAllWebWorkers(const base::Closure& closure) override; 208 int PostTaskToAllWebWorkers(const base::Closure& closure) override;
209 bool ResolveProxy(const GURL& url, std::string* proxy_list) override; 209 bool ResolveProxy(const GURL& url, std::string* proxy_list) override;
210 base::WaitableEvent* GetShutdownEvent() override; 210 base::WaitableEvent* GetShutdownEvent() override;
211 int32_t GetClientId() override;
211 212
212 // IPC::Listener implementation via ChildThreadImpl: 213 // IPC::Listener implementation via ChildThreadImpl:
213 void OnAssociatedInterfaceRequest( 214 void OnAssociatedInterfaceRequest(
214 const std::string& name, 215 const std::string& name,
215 mojo::ScopedInterfaceEndpointHandle handle) override; 216 mojo::ScopedInterfaceEndpointHandle handle) override;
216 217
217 // CompositorDependencies implementation. 218 // CompositorDependencies implementation.
218 bool IsGpuRasterizationForced() override; 219 bool IsGpuRasterizationForced() override;
219 bool IsGpuRasterizationEnabled() override; 220 bool IsGpuRasterizationEnabled() override;
220 bool IsAsyncWorkerContextEnabled() override; 221 bool IsAsyncWorkerContextEnabled() override;
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 AssociatedInterfaceRegistryImpl associated_interfaces_; 736 AssociatedInterfaceRegistryImpl associated_interfaces_;
736 737
737 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_; 738 mojo::AssociatedBinding<mojom::Renderer> renderer_binding_;
738 739
739 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_; 740 mojom::RenderFrameMessageFilterAssociatedPtr render_frame_message_filter_;
740 mojom::RenderMessageFilterAssociatedPtr render_message_filter_; 741 mojom::RenderMessageFilterAssociatedPtr render_message_filter_;
741 742
742 base::CancelableClosure record_purge_suspend_metric_closure_; 743 base::CancelableClosure record_purge_suspend_metric_closure_;
743 bool is_renderer_suspended_; 744 bool is_renderer_suspended_;
744 745
746 int32_t client_id_;
747
745 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 748 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
746 }; 749 };
747 750
748 #if defined(COMPILER_MSVC) 751 #if defined(COMPILER_MSVC)
749 #pragma warning(pop) 752 #pragma warning(pop)
750 #endif 753 #endif
751 754
752 } // namespace content 755 } // namespace content
753 756
754 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 757 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698