summaryrefslogtreecommitdiffstats
path: root/components/offline_pages/proto
diff options
context:
space:
mode:
authorabhishek.a21 <abhishek.a21@samsung.com>2015-07-22 02:11:44 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-22 09:12:55 +0000
commitfaf6421d12a9499b3a3d5266b5ceb33ea81ce1d2 (patch)
treefe0c36593acb4bd50c5372080be04bc0b5e1a83f /components/offline_pages/proto
parent1067392cb46b944e198f085fad7e226d700ad070 (diff)
downloadchromium_src-faf6421d12a9499b3a3d5266b5ceb33ea81ce1d2.zip
chromium_src-faf6421d12a9499b3a3d5266b5ceb33ea81ce1d2.tar.gz
chromium_src-faf6421d12a9499b3a3d5266b5ceb33ea81ce1d2.tar.bz2
Componentize //chrome/browser/offline_pages
Componentize offline_page_metadata_store_impl.[cc/h], unittest and offline_pages.proto file. Updated BUILD.gn and corresponding .gypi files for the same. BUG=507284 Review URL: https://codereview.chromium.org/1226173004 Cr-Commit-Position: refs/heads/master@{#339852}
Diffstat (limited to 'components/offline_pages/proto')
-rw-r--r--components/offline_pages/proto/BUILD.gn12
-rw-r--r--components/offline_pages/proto/offline_pages.proto36
2 files changed, 48 insertions, 0 deletions
diff --git a/components/offline_pages/proto/BUILD.gn b/components/offline_pages/proto/BUILD.gn
new file mode 100644
index 0000000..7cfb1a6
--- /dev/null
+++ b/components/offline_pages/proto/BUILD.gn
@@ -0,0 +1,12 @@
+# Copyright 2015 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.
+
+import("//third_party/protobuf/proto_library.gni")
+
+# GYP version: components/offline_pages.gypi:offline_pages_proto
+proto_library("offline_pages_proto") {
+ sources = [
+ "offline_pages.proto",
+ ]
+}
diff --git a/components/offline_pages/proto/offline_pages.proto b/components/offline_pages/proto/offline_pages.proto
new file mode 100644
index 0000000..16f23b1
--- /dev/null
+++ b/components/offline_pages/proto/offline_pages.proto
@@ -0,0 +1,36 @@
+// Copyright 2015 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.
+//
+// Offline page item protocol for storage and exchanging of offline page
+// metadata.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+option retain_unknown_fields = true;
+
+package offline_pages;
+
+message OfflinePageEntry {
+ // URL of the offline page.
+ required string url = 1;
+
+ // Title of the offline page.
+ required string title = 2;
+
+ // Version of the offline page metadata.
+ required int32 version = 3;
+
+ // Path to the offline archive.
+ required string file_path = 4;
+
+ // Size of the offline archive.
+ optional int64 file_size = 5;
+
+ // Creation time of the offline archive.
+ optional int64 creation_time = 6;
+
+ // Last access time of the offline archive.
+ optional int64 last_access_time = 7;
+}