OLD | NEW |
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 CHROME_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H__ | 5 #ifndef CHROME_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H__ |
6 #define CHROME_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H__ | 6 #define CHROME_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
11 | 11 |
12 class LoadFromMemoryCacheDetails { | 12 class LoadFromMemoryCacheDetails { |
13 public: | 13 public: |
14 LoadFromMemoryCacheDetails( | 14 LoadFromMemoryCacheDetails( |
15 const GURL& url, | 15 const GURL& url, |
16 const std::string& frame_origin, | 16 const std::string& frame_origin, |
17 const std::string& main_frame_origin, | 17 const std::string& main_frame_origin, |
18 int pid, | 18 int pid, |
19 int cert_id, | 19 int cert_id, |
20 int cert_status); | 20 int cert_status, |
| 21 string16 tls_username); |
21 ~LoadFromMemoryCacheDetails(); | 22 ~LoadFromMemoryCacheDetails(); |
22 | 23 |
23 const GURL& url() const { return url_; } | 24 const GURL& url() const { return url_; } |
24 const std::string& frame_origin() const { return frame_origin_; } | 25 const std::string& frame_origin() const { return frame_origin_; } |
25 const std::string& main_frame_origin() const { return main_frame_origin_; } | 26 const std::string& main_frame_origin() const { return main_frame_origin_; } |
26 int pid() const { return pid_; } | 27 int pid() const { return pid_; } |
27 int ssl_cert_id() const { return cert_id_; } | 28 int ssl_cert_id() const { return cert_id_; } |
28 int ssl_cert_status() const { return cert_status_; } | 29 int ssl_cert_status() const { return cert_status_; } |
| 30 string16 tls_username() const { return tls_username_; } |
29 | 31 |
30 private: | 32 private: |
31 GURL url_; | 33 GURL url_; |
32 std::string frame_origin_; | 34 std::string frame_origin_; |
33 std::string main_frame_origin_; | 35 std::string main_frame_origin_; |
34 int pid_; | 36 int pid_; |
35 int cert_id_; | 37 int cert_id_; |
36 int cert_status_; | 38 int cert_status_; |
| 39 string16 tls_username_; |
37 | 40 |
38 DISALLOW_COPY_AND_ASSIGN(LoadFromMemoryCacheDetails); | 41 DISALLOW_COPY_AND_ASSIGN(LoadFromMemoryCacheDetails); |
39 }; | 42 }; |
40 | 43 |
41 #endif // CHROME_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H__ | 44 #endif // CHROME_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H__ |
OLD | NEW |