| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 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 | |
| 5 #ifndef CONTENT_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H_ | |
| 6 #define CONTENT_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 #include "base/basictypes.h" | |
| 11 #include "googleurl/src/gurl.h" | |
| 12 #include "net/base/cert_status_flags.h" | |
| 13 #include "webkit/glue/resource_type.h" | |
| 14 | |
| 15 class LoadFromMemoryCacheDetails { | |
| 16 public: | |
| 17 LoadFromMemoryCacheDetails( | |
| 18 const GURL& url, | |
| 19 int pid, | |
| 20 int cert_id, | |
| 21 net::CertStatus cert_status, | |
| 22 const std::string& http_method, | |
| 23 const std::string& mime_type, | |
| 24 ResourceType::Type resource_type); | |
| 25 ~LoadFromMemoryCacheDetails(); | |
| 26 | |
| 27 const GURL& url() const { return url_; } | |
| 28 int pid() const { return pid_; } | |
| 29 int ssl_cert_id() const { return cert_id_; } | |
| 30 net::CertStatus ssl_cert_status() const { return cert_status_; } | |
| 31 const std::string& http_method() const { return http_method_; } | |
| 32 const std::string& mime_type() const { return mime_type_; } | |
| 33 ResourceType::Type resource_type() const { return resource_type_; } | |
| 34 | |
| 35 private: | |
| 36 GURL url_; | |
| 37 int pid_; | |
| 38 int cert_id_; | |
| 39 net::CertStatus cert_status_; | |
| 40 std::string http_method_; | |
| 41 std::string mime_type_; | |
| 42 ResourceType::Type resource_type_; | |
| 43 | |
| 44 DISALLOW_COPY_AND_ASSIGN(LoadFromMemoryCacheDetails); | |
| 45 }; | |
| 46 | |
| 47 #endif // CONTENT_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H_ | |
| OLD | NEW |