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

Side by Side Diff: chrome/renderer/mock_render_thread.h

Issue 3263007: Reland r57788 - Expose Extension Bindings to Component Applications (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: don't hide gallery url in omnibar Created 10 years, 3 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) 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_RENDERER_MOCK_RENDER_THREAD_H_ 5 #ifndef CHROME_RENDERER_MOCK_RENDER_THREAD_H_
6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 6 #define CHROME_RENDERER_MOCK_RENDER_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter); 49 virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter);
50 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter); 50 virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter);
51 51
52 // Our mock thread doesn't deal with hidden and restored tabs. 52 // Our mock thread doesn't deal with hidden and restored tabs.
53 virtual void WidgetHidden() { } 53 virtual void WidgetHidden() { }
54 virtual void WidgetRestored() { } 54 virtual void WidgetRestored() { }
55 55
56 virtual bool IsExtensionProcess() const { return is_extension_process_; } 56 virtual bool IsExtensionProcess() const { return is_extension_process_; }
57 void SetExtensionProcess(bool value) { is_extension_process_ = value; } 57 void SetExtensionProcess(bool value) { is_extension_process_ = value; }
58 58
59
60 ////////////////////////////////////////////////////////////////////////// 59 //////////////////////////////////////////////////////////////////////////
61 // The following functions are called by the test itself. 60 // The following functions are called by the test itself.
62 61
63 void set_routing_id(int32 id) { 62 void set_routing_id(int32 id) {
64 routing_id_ = id; 63 routing_id_ = id;
65 } 64 }
66 65
67 int32 opener_id() const { 66 int32 opener_id() const {
68 return opener_id_; 67 return opener_id_;
69 } 68 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // The last known good deserializer for sync messages. 135 // The last known good deserializer for sync messages.
137 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 136 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
138 137
139 // A mock printer device used for printing tests. 138 // A mock printer device used for printing tests.
140 scoped_ptr<MockPrinter> printer_; 139 scoped_ptr<MockPrinter> printer_;
141 140
142 bool is_extension_process_; 141 bool is_extension_process_;
143 }; 142 };
144 143
145 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 144 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/extension_renderer_info.cc ('k') | chrome/renderer/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698