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

Side by Side Diff: content/browser/load_from_memory_cache_details.h

Issue 10582007: Moving LoadFromMemoryCacheDetails to content/public/browser and making it a struct. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixing include order. Created 8 years, 6 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
« no previous file with comments | « no previous file | content/browser/load_from_memory_cache_details.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/load_from_memory_cache_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698