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

Side by Side Diff: content/browser/download/mhtml_extra_data.h

Issue 2683493002: Get signals working in the EXTRA_DATA section of MHTML (Closed)
Patch Set: Don't forget the new .h file Created 3 years, 9 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
(Empty)
1 // Copyright (c) 2017 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 #ifndef CONTENT_BROWSER_DOWNLOAD_MHTML_EXTRA_DATA_H_
5 #define CONTENT_BROWSER_DOWNLOAD_MHTML_EXTRA_DATA_H_
6
7 #include <string>
8
9 #include "base/supports_user_data.h"
10
11 namespace content {
Dmitry Titov 2017/03/16 02:28:20 Not sure why this file should live in content... T
Pete Williamson 2017/03/17 23:28:32 We dicussed this in person, and agreed to move the
12
13 const void* kMHTMLExtraDataKey = (void*)0x14725138;
Pete Williamson 2017/03/15 22:38:22 This is a kind of clunk way to do a key, just pick
Dmitry Titov 2017/03/16 02:28:20 It is usually done like this: static int kFooKey;
fgorski 2017/03/16 17:46:31 It was in different compilation unit because you p
Pete Williamson 2017/03/17 23:28:32 Done.
Pete Williamson 2017/03/17 23:28:32 Done.
14
15 struct MHTMLExtraData : public base::SupportsUserData::Data {
16 MHTMLExtraData(std::string data) : data_string(data) {}
17 ~MHTMLExtraData() override {}
18 std::string data_string;
19 };
20
21 } // namespace content
22
23 #endif // CONTENT_BROWSER_DOWNLOAD_MHTML_EXTRA_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698