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

Side by Side Diff: chrome/utility/chrome_content_utility_client.h

Issue 6995095: Move UtilityProcessHost to content and move the message sending/dispatching to the clients. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "base/platform_file.h"
11 #include "content/utility/content_utility_client.h"
12
13 class FilePath;
14
15 namespace gfx {
16 class Rect;
17 }
18
19 namespace printing {
20 struct PageRange;
21 }
22
23 namespace chrome {
24
25 class ChromeContentUtilityClient : public content::ContentUtilityClient {
26 public:
27 ChromeContentUtilityClient();
28 ~ChromeContentUtilityClient();
29
30 virtual void UtilityThreadStarted() OVERRIDE;
31 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
32
33 private:
34 virtual bool Send(IPC::Message* message);
35
36 // IPC message handlers.
37 void OnUnpackExtension(const FilePath& extension_path);
38 void OnUnpackWebResource(const std::string& resource_data);
39 void OnParseUpdateManifest(const std::string& xml);
40 void OnDecodeImage(const std::vector<unsigned char>& encoded_data);
41 void OnDecodeImageBase64(const std::string& encoded_data);
42 void OnRenderPDFPagesToMetafile(
43 base::PlatformFile pdf_file,
44 const FilePath& metafile_path,
45 const gfx::Rect& render_area,
46 int render_dpi,
47 const std::vector<printing::PageRange>& page_ranges);
48 void OnParseJSON(const std::string& json);
49
50 #if defined(OS_WIN)
51 // Helper method for Windows.
52 // |highest_rendered_page_number| is set to -1 on failure to render any page.
53 bool RenderPDFToWinMetafile(
54 base::PlatformFile pdf_file,
Matt Perry 2011/06/09 01:40:33 indent +2
55 const FilePath& metafile_path,
56 const gfx::Rect& render_area,
57 int render_dpi,
58 const std::vector<printing::PageRange>& page_ranges,
59 int* highest_rendered_page_number);
60 #endif // defined(OS_WIN)
61
62 void OnGetPrinterCapsAndDefaults(const std::string& printer_name);
63 };
64
65 } // namespace chrome
66
67 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698