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

Unified Diff: chrome/browser/intents/web_intents_util.h

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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/intents/web_intents_util.h
diff --git a/chrome/browser/intents/web_intents_util.h b/chrome/browser/intents/web_intents_util.h
deleted file mode 100644
index 2dfa99f685ea12249ae2e875bf1df1fc0ae9688d..0000000000000000000000000000000000000000
--- a/chrome/browser/intents/web_intents_util.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2012 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_INTENTS_WEB_INTENTS_UTIL_H_
-#define CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_
-
-#include "base/string16.h"
-
-class Browser;
-class Profile;
-class PrefService;
-class PrefRegistrySyncable;
-
-namespace web_intents {
-
-enum ActionId {
- ACTION_ID_CUSTOM = 1, // for all unrecognized types
- ACTION_ID_EDIT,
- ACTION_ID_PICK,
- ACTION_ID_SAVE,
- ACTION_ID_SHARE,
- ACTION_ID_SUBSCRIBE,
- ACTION_ID_VIEW,
-};
-
-// "Recognized" action strings. These are basically the
-// actions we're reporting via UMA.
-extern const char kActionEdit[];
-extern const char kActionPick[];
-extern const char kActionSave[];
-extern const char kActionShare[];
-extern const char kActionSubscribe[];
-extern const char kActionView[];
-extern const char kActionCrosEcho[];
-
-extern const char kQuickOfficeViewerServiceURL[];
-extern const char kQuickOfficeViewerDevServiceURL[];
-
-// Registers the preferences related to Web Intents.
-void RegisterUserPrefs(PrefRegistrySyncable* registry);
-
-// Returns true if WebIntents are enabled in preferences.
-bool IsWebIntentsEnabled(PrefService* prefs);
-
-// Returns true if WebIntents are enabled due to various factors. |profile| is
-// the Profile to check that WebIntents are enabled for.
-bool IsWebIntentsEnabledForProfile(Profile* profile);
-
-// In a context where we are generating a web intent based on internal events,
-// or from an extension background page, get the browser in which to show the
-// intent picker to the user.
-Browser* GetBrowserForBackgroundWebIntentDelivery(Profile* profile);
-
-// Returns the recognized action (the one described at
-// webintents.org) or an empty string if the action is not recognized.
-bool IsRecognizedAction(const string16& action);
-
-// Returns the action::Id corresponding to |action| or ACTION_ID_CUSTOM
-// if |action| is not recognized.
-ActionId ToActionId(const string16& action);
-
-// Returns true if |type1| and |type2| "match". Supports wild cards in both
-// |type1| and |type2|. Wild cards are of the form '<type>/*', '*/*', and '*'.
-bool MimeTypesMatch(const string16& type1, const string16& type2);
-
-} // namespace web_intents
-
-#endif // CHROME_BROWSER_INTENTS_WEB_INTENTS_UTIL_H_
« no previous file with comments | « chrome/browser/intents/web_intents_reporting_unittest.cc ('k') | chrome/browser/intents/web_intents_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698