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

Unified Diff: chrome/browser/extensions/convert_web_app.h

Issue 4326002: Revert 64845 - Add convert_web_app.*, a utility to convert web apps declared... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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
« no previous file with comments | « chrome/browser/extensions/convert_user_script.h ('k') | chrome/browser/extensions/convert_web_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/convert_web_app.h
===================================================================
--- chrome/browser/extensions/convert_web_app.h (revision 64850)
+++ chrome/browser/extensions/convert_web_app.h (working copy)
@@ -1,40 +0,0 @@
-// Copyright (c) 2010 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 CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_
-#define CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_
-#pragma once
-
-#include <string>
-
-#include "base/ref_counted.h"
-
-class Extension;
-
-namespace base {
-class Time;
-}
-
-namespace webkit_glue {
-class WebApplicationInfo;
-}
-
-// Generates a version number for an extension from a time. The goal is to make
-// use of the version number to communicate some useful information. The
-// returned version has the format:
-// <year>.<month><day>.<upper 16 bits of unix timestamp>.<lower 16 bits>
-std::string ConvertTimeToExtensionVersion(const base::Time& time);
-
-// Wraps the specified web app in an extension. The extension is created
-// unpacked in the system temp dir. Returns a valid extension that the caller
-// should take ownership on success, or NULL and |error| on failure.
-//
-// NOTE: This function does file IO and should not be called on the UI thread.
-// NOTE: The caller takes ownership of the directory at extension->path() on the
-// returned object.
-scoped_refptr<Extension> ConvertWebAppToExtension(
- const webkit_glue::WebApplicationInfo& web_app_info,
- const base::Time& create_time);
-
-#endif // CHROME_BROWSER_EXTENSIONS_CONVERT_WEB_APP_H_
« no previous file with comments | « chrome/browser/extensions/convert_user_script.h ('k') | chrome/browser/extensions/convert_web_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698