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

Unified Diff: chrome/browser/installable/installable_property.cc

Issue 2160513002: Extract AppBannerDataFetcher into an InstallableManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/checker/manager; collapse valid manifest + SW into one Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/installable/installable_property.cc
diff --git a/chrome/browser/installable/installable_property.cc b/chrome/browser/installable/installable_property.cc
new file mode 100644
index 0000000000000000000000000000000000000000..def084febfe933292648571d32f1f654cc23cf46
--- /dev/null
+++ b/chrome/browser/installable/installable_property.cc
@@ -0,0 +1,39 @@
+// Copyright 2016 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 "chrome/browser/installable/installable_property.h"
+
+#include "chrome/browser/installable/installable_logging.h"
+#include "content/public/common/manifest.h"
+#include "third_party/skia/include/core/SkBitmap.h"
+#include "url/gurl.h"
+
+ManifestProperty::ManifestProperty()
+ : error(NO_ERROR_DETECTED), url(), manifest(), fetched(false) { }
+
+void ManifestProperty::Reset() {
+ error = NO_ERROR_DETECTED;
+ url = GURL();
+ manifest = content::Manifest();
+ fetched = false;
+}
+
+BooleanProperty::BooleanProperty()
+ : error(NO_ERROR_DETECTED), value(false), fetched(false) { }
+
+void BooleanProperty::Reset() {
+ error = NO_ERROR_DETECTED;
+ value = false;
+ fetched = false;
+}
+
+IconProperty::IconProperty()
+ : error(NO_ERROR_DETECTED), url(), icon(nullptr), fetched(false) { }
+
+IconProperty::IconProperty(IconProperty&& other) = default;
+
+IconProperty::~IconProperty() = default;
+
+IconProperty& IconProperty::operator=(IconProperty&& other) =
+ default;

Powered by Google App Engine
This is Rietveld 408576698