summaryrefslogtreecommitdiffstats
path: root/content/public
diff options
context:
space:
mode:
authorshishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-20 01:02:00 +0000
committershishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-20 01:02:00 +0000
commita02cf4c035866c71252bf06d097e5bb7d8a0892c (patch)
tree915d970c13350084b771983b1d6b8f1457883d8f /content/public
parent878b77e20f0e086730a3ba7e11d0b00b2c51dd01 (diff)
downloadchromium_src-a02cf4c035866c71252bf06d097e5bb7d8a0892c.zip
chromium_src-a02cf4c035866c71252bf06d097e5bb7d8a0892c.tar.gz
chromium_src-a02cf4c035866c71252bf06d097e5bb7d8a0892c.tar.bz2
Moving LoadFromMemoryCacheDetails to content/public/browser and making it a struct.
BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10582007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r--content/public/browser/load_from_memory_cache_details.cc29
-rw-r--r--content/public/browser/load_from_memory_cache_details.h38
2 files changed, 67 insertions, 0 deletions
diff --git a/content/public/browser/load_from_memory_cache_details.cc b/content/public/browser/load_from_memory_cache_details.cc
new file mode 100644
index 0000000..a6ce4e5
--- /dev/null
+++ b/content/public/browser/load_from_memory_cache_details.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/browser/load_from_memory_cache_details.h"
+
+namespace content {
+
+LoadFromMemoryCacheDetails::LoadFromMemoryCacheDetails(
+ const GURL& url,
+ int pid,
+ int cert_id,
+ net::CertStatus cert_status,
+ const std::string& http_method,
+ const std::string& mime_type,
+ ResourceType::Type resource_type)
+ : url(url),
+ pid(pid),
+ cert_id(cert_id),
+ cert_status(cert_status),
+ http_method(http_method),
+ mime_type(mime_type),
+ resource_type(resource_type) {
+}
+
+LoadFromMemoryCacheDetails::~LoadFromMemoryCacheDetails() {
+}
+
+} // namespace content
diff --git a/content/public/browser/load_from_memory_cache_details.h b/content/public/browser/load_from_memory_cache_details.h
new file mode 100644
index 0000000..b022b0c
--- /dev/null
+++ b/content/public/browser/load_from_memory_cache_details.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H_
+#define CONTENT_PUBLIC_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H_
+#pragma once
+
+#include <string>
+#include "base/basictypes.h"
+#include "googleurl/src/gurl.h"
+#include "net/base/cert_status_flags.h"
+#include "webkit/glue/resource_type.h"
+
+namespace content {
+
+struct LoadFromMemoryCacheDetails {
+ LoadFromMemoryCacheDetails(const GURL& url,
+ int pid,
+ int cert_id,
+ net::CertStatus cert_status,
+ const std::string& http_method,
+ const std::string& mime_type,
+ ResourceType::Type resource_type);
+ ~LoadFromMemoryCacheDetails();
+
+ GURL url;
+ int pid;
+ int cert_id;
+ net::CertStatus cert_status;
+ std::string http_method;
+ std::string mime_type;
+ ResourceType::Type resource_type;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_LOAD_FROM_MEMORY_CACHE_DETAILS_H_