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

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

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 "base/files/file.h" 8 #include "base/files/file.h"
9 #include "content/public/renderer/render_view_observer.h" 9 #include "content/public/renderer/render_view_observer.h"
10 #include "ipc/ipc_platform_file.h" 10 #include "ipc/ipc_platform_file.h"
11 11
12 namespace content { 12 namespace content {
13 class RenderViewImpl; 13 class RenderViewImpl;
14 14
15 class MHTMLGenerator : public RenderViewObserver { 15 class MHTMLGenerator : public RenderViewObserver {
16 public: 16 public:
17 explicit MHTMLGenerator(RenderViewImpl* render_view); 17 explicit MHTMLGenerator(RenderViewImpl* render_view);
18 virtual ~MHTMLGenerator(); 18 virtual ~MHTMLGenerator();
19 19
20 private: 20 private:
21 // RenderViewObserver implementation: 21 // RenderViewObserver implementation:
22 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 22 virtual bool OnMessageReceived(const IPC::Message& message) override;
23 23
24 void OnSavePageAsMHTML(int job_id, 24 void OnSavePageAsMHTML(int job_id,
25 IPC::PlatformFileForTransit file_for_transit); 25 IPC::PlatformFileForTransit file_for_transit);
26 26
27 void NotifyBrowser(int job_id, int64 data_size); 27 void NotifyBrowser(int job_id, int64 data_size);
28 // Returns the size of the generated MHTML, -1 if it failed. 28 // Returns the size of the generated MHTML, -1 if it failed.
29 int64 GenerateMHTML(); 29 int64 GenerateMHTML();
30 30
31 base::File file_; 31 base::File file_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerator); 33 DISALLOW_COPY_AND_ASSIGN(MHTMLGenerator);
34 }; 34 };
35 35
36 } // namespace content 36 } // namespace content
37 37
38 #endif // CONTENT_RENDERER_MHTML_GENERATOR_H_ 38 #endif // CONTENT_RENDERER_MHTML_GENERATOR_H_
OLDNEW
« no previous file with comments | « content/renderer/memory_benchmarking_extension.h ('k') | content/renderer/mojo/service_registry_js_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698