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

Side by Side Diff: content/renderer/mhtml_generator.h

Issue 8220006: Rename RenderView to RenderViewImpl. Update Chrome's DEPS so that it can't include the RenderView... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/media/media_stream_dispatcher.cc ('k') | content/renderer/mhtml_generator.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) 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 CONTENT_RENDERER_MHTML_GENERATOR_H_ 5 #ifndef CONTENT_RENDERER_MHTML_GENERATOR_H_
6 #define CONTENT_RENDERER_MHTML_GENERATOR_H_ 6 #define CONTENT_RENDERER_MHTML_GENERATOR_H_
7 7
8 #include "content/public/renderer/render_view_observer.h" 8 #include "content/public/renderer/render_view_observer.h"
9 9
10 #include "ipc/ipc_platform_file.h" 10 #include "ipc/ipc_platform_file.h"
11 11
12 class RenderViewImpl;
13
12 class MHTMLGenerator : public content::RenderViewObserver { 14 class MHTMLGenerator : public content::RenderViewObserver {
13 public: 15 public:
14 explicit MHTMLGenerator(RenderView* render_view); 16 explicit MHTMLGenerator(RenderViewImpl* render_view);
15 virtual ~MHTMLGenerator(); 17 virtual ~MHTMLGenerator();
16 18
17 private: 19 private:
18 // RenderViewObserver implementation: 20 // RenderViewObserver implementation:
19 virtual bool OnMessageReceived(const IPC::Message& message); 21 virtual bool OnMessageReceived(const IPC::Message& message);
20 22
21 void OnSavePageAsMHTML(int job_id, 23 void OnSavePageAsMHTML(int job_id,
22 IPC::PlatformFileForTransit file_for_transit); 24 IPC::PlatformFileForTransit file_for_transit);
23 25
24 void NotifyBrowser(int job_id, int64 data_size); 26 void NotifyBrowser(int job_id, int64 data_size);
25 // Returns the size of the generated MHTML, -1 if it failed. 27 // Returns the size of the generated MHTML, -1 if it failed.
26 int64 GenerateMHTML(); 28 int64 GenerateMHTML();
27 29
28 base::PlatformFile file_; 30 base::PlatformFile file_;
29 31
30 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerator); 32 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerator);
31 }; 33 };
32 34
33 #endif // CONTENT_RENDERER_MHTML_GENERATOR_H_ 35 #endif // CONTENT_RENDERER_MHTML_GENERATOR_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_dispatcher.cc ('k') | content/renderer/mhtml_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698