X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fextensions%2Finstall_verifier.h;h=7c7c3ee8ae74a02011ea16f248c0822f8b8b3fae;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=522c508a0e5e4a6e971948c75fe628974f7274c7;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/extensions/install_verifier.h b/src/chrome/browser/extensions/install_verifier.h index 522c508..7c7c3ee 100644 --- a/src/chrome/browser/extensions/install_verifier.h +++ b/src/chrome/browser/extensions/install_verifier.h @@ -53,6 +53,9 @@ class InstallVerifier : public ManagementPolicy::Provider { // an initial one so that MustRemainDisabled can actually check against it. bool NeedsBootstrap(); + // Returns the timestamp of our InstallSignature, if we have one. + base::Time SignatureTimestamp(); + // A callback for indicating success/failure of adding new ids. typedef base::Callback AddResultCallback; @@ -107,6 +110,10 @@ class InstallVerifier : public ManagementPolicy::Provider { // Returns whether the given |id| is included in our verified signature. bool IsVerified(const std::string& id) const; + // Returns true if the extension with |id| was installed later than the + // timestamp of our signature. + bool WasInstalledAfterSignature(const std::string& id) const; + // Begins the process of fetching a new signature, based on applying the // operation at the head of the queue to the current set of ids in // |signature_| (if any) and then sending a request to sign that.