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

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

Issue 3210007: Add support for a "split" incognito behavior for extensions. (Closed)
Patch Set: latest 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // Filtering support. 48 // Filtering support.
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 virtual bool IsIncognitoProcess() const { return false; }
57 void SetExtensionProcess(bool value) { is_extension_process_ = value; } 58 void SetExtensionProcess(bool value) { is_extension_process_ = value; }
58 59
59 60
60 ////////////////////////////////////////////////////////////////////////// 61 //////////////////////////////////////////////////////////////////////////
61 // The following functions are called by the test itself. 62 // The following functions are called by the test itself.
62 63
63 void set_routing_id(int32 id) { 64 void set_routing_id(int32 id) {
64 routing_id_ = id; 65 routing_id_ = id;
65 } 66 }
66 67
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // The last known good deserializer for sync messages. 137 // The last known good deserializer for sync messages.
137 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_; 138 scoped_ptr<IPC::MessageReplyDeserializer> reply_deserializer_;
138 139
139 // A mock printer device used for printing tests. 140 // A mock printer device used for printing tests.
140 scoped_ptr<MockPrinter> printer_; 141 scoped_ptr<MockPrinter> printer_;
141 142
142 bool is_extension_process_; 143 bool is_extension_process_;
143 }; 144 };
144 145
145 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_ 146 #endif // CHROME_RENDERER_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/extension_process_bindings.cc ('k') | chrome/renderer/render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698