OLD | NEW |
---|---|
(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_ | |
OLD | NEW |