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

Side by Side Diff: chrome/browser/gpu_process_host_ui_shim.h

Issue 5685007: Rename all methods accessing Singleton<T> as GetInstance(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 | « chrome/browser/gpu_process_host.cc ('k') | chrome/browser/gpu_process_host_ui_shim.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ 5 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_
6 #define CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_
7 #pragma once 7 #pragma once
8 8
9 // This class lives on the UI thread and supports classes like the 9 // This class lives on the UI thread and supports classes like the
10 // BackingStoreProxy, which must live on the UI thread. The IO thread 10 // BackingStoreProxy, which must live on the UI thread. The IO thread
11 // portion of this class, the GpuProcessHost, is responsible for 11 // portion of this class, the GpuProcessHost, is responsible for
12 // shuttling messages between the browser and GPU processes. 12 // shuttling messages between the browser and GPU processes.
13 13
14 #include "base/non_thread_safe.h" 14 #include "base/non_thread_safe.h"
15 #include "base/singleton.h" 15 #include "base/singleton.h"
16 #include "chrome/common/gpu_info.h" 16 #include "chrome/common/gpu_info.h"
17 #include "chrome/common/message_router.h" 17 #include "chrome/common/message_router.h"
18 #include "ipc/ipc_channel.h" 18 #include "ipc/ipc_channel.h"
19 #include "gfx/native_widget_types.h" 19 #include "gfx/native_widget_types.h"
20 20
21 class GpuProcessHostUIShim : public IPC::Channel::Sender, 21 class GpuProcessHostUIShim : public IPC::Channel::Sender,
22 public IPC::Channel::Listener, 22 public IPC::Channel::Listener,
23 public NonThreadSafe { 23 public NonThreadSafe {
24 public: 24 public:
25 // Getter for the singleton. This will return NULL on failure. 25 // Getter for the singleton. This will return NULL on failure.
26 static GpuProcessHostUIShim* Get(); 26 static GpuProcessHostUIShim* GetInstance();
27 27
28 int32 GetNextRoutingId(); 28 int32 GetNextRoutingId();
29 29
30 // IPC::Channel::Sender implementation. 30 // IPC::Channel::Sender implementation.
31 virtual bool Send(IPC::Message* msg); 31 virtual bool Send(IPC::Message* msg);
32 32
33 // IPC::Channel::Listener implementation. 33 // IPC::Channel::Listener implementation.
34 // The GpuProcessHost causes this to be called on the UI thread to 34 // The GpuProcessHost causes this to be called on the UI thread to
35 // dispatch the incoming messages from the GPU process, which are 35 // dispatch the incoming messages from the GPU process, which are
36 // actually received on the IO thread. 36 // actually received on the IO thread.
(...skipping 30 matching lines...) Expand all
67 67
68 int last_routing_id_; 68 int last_routing_id_;
69 69
70 GPUInfo gpu_info_; 70 GPUInfo gpu_info_;
71 71
72 MessageRouter router_; 72 MessageRouter router_;
73 }; 73 };
74 74
75 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_ 75 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_UI_SHIM_H_
76 76
OLDNEW
« no previous file with comments | « chrome/browser/gpu_process_host.cc ('k') | chrome/browser/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698