summaryrefslogtreecommitdiffstats
path: root/chrome/browser/web_applications/web_app.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/web_applications/web_app.h')
-rw-r--r--chrome/browser/web_applications/web_app.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/web_applications/web_app.h b/chrome/browser/web_applications/web_app.h
index f5d7f431..abe5b93 100644
--- a/chrome/browser/web_applications/web_app.h
+++ b/chrome/browser/web_applications/web_app.h
@@ -1,15 +1,18 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// 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_WEB_APPLICATIONS_WEB_APP_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
+#include <vector>
+
#include "base/callback.h"
-#include "base/file_path.h"
+#include "build/build_config.h"
#include "chrome/browser/shell_integration.h"
#include "webkit/glue/dom_operations.h"
+class FilePath;
class Profile;
class TabContents;
@@ -40,11 +43,13 @@ bool IsValidUrl(const GURL& url);
// Returns data dir for web apps for given profile path.
FilePath GetDataDir(const FilePath& profile_path);
+#if defined(TOOLKIT_VIEWS)
// Extracts icons info from web app data. Take only square shaped icons and
// sort them from smallest to largest.
typedef std::vector<webkit_glue::WebApplicationInfo::IconInfo> IconInfoList;
void GetIconsInfo(const webkit_glue::WebApplicationInfo& app_info,
IconInfoList* icons);
+#endif
// Extracts shortcut info of given TabContents.
void GetShortcutInfoForTab(TabContents* tab_contents,