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

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

Issue 664553007: Cleanup: Put more chrome/ code behind ENABLE_EXTENSIONS ifdefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: fix android Created 6 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CHROME_MOCK_RENDER_THREAD_H_ 5 #ifndef CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_
6 #define CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ 6 #define CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // Get the number of pages to generate for print preview. 55 // Get the number of pages to generate for print preview.
56 int print_preview_pages_remaining() const; 56 int print_preview_pages_remaining() const;
57 #endif 57 #endif
58 58
59 private: 59 private:
60 // Overrides base class implementation to add custom handling for 60 // Overrides base class implementation to add custom handling for
61 // print and extensions. 61 // print and extensions.
62 virtual bool OnMessageReceived(const IPC::Message& msg) override; 62 virtual bool OnMessageReceived(const IPC::Message& msg) override;
63 63
64 #if defined(ENABLE_EXTENSIONS)
64 // The callee expects to be returned a valid channel_id. 65 // The callee expects to be returned a valid channel_id.
65 void OnOpenChannelToExtension(int routing_id, 66 void OnOpenChannelToExtension(int routing_id,
66 const ExtensionMsg_ExternalConnectionInfo& info, 67 const ExtensionMsg_ExternalConnectionInfo& info,
67 const std::string& channel_name, 68 const std::string& channel_name,
68 bool include_tls_channel_id, 69 bool include_tls_channel_id,
69 int* port_id); 70 int* port_id);
71 #endif
70 72
71 #if defined(ENABLE_PRINTING) 73 #if defined(ENABLE_PRINTING)
72 #if defined(OS_CHROMEOS) || defined(OS_ANDROID) 74 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
73 void OnAllocateTempFileForPrinting(int render_view_id, 75 void OnAllocateTempFileForPrinting(int render_view_id,
74 base::FileDescriptor* renderer_fd, 76 base::FileDescriptor* renderer_fd,
75 int* browser_fd); 77 int* browser_fd);
76 void OnTempFileForPrintingWritten(int render_view_id, int browser_fd); 78 void OnTempFileForPrintingWritten(int render_view_id, int browser_fd);
77 #endif 79 #endif
78 80
79 // PrintWebViewHelper expects default print settings. 81 // PrintWebViewHelper expects default print settings.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Number of pages to generate for print preview. 114 // Number of pages to generate for print preview.
113 int print_preview_pages_remaining_; 115 int print_preview_pages_remaining_;
114 #endif 116 #endif
115 117
116 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; 118 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
117 119
118 DISALLOW_COPY_AND_ASSIGN(ChromeMockRenderThread); 120 DISALLOW_COPY_AND_ASSIGN(ChromeMockRenderThread);
119 }; 121 };
120 122
121 #endif // CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_ 123 #endif // CHROME_RENDERER_CHROME_MOCK_RENDER_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/chrome_mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698