| Index: chrome/browser/extensions/active_tab_permission_manager.h
|
| diff --git a/chrome/browser/extensions/active_tab_permission_manager.h b/chrome/browser/extensions/active_tab_permission_manager.h
|
| deleted file mode 100644
|
| index 6021cfb9a1bb6588d59cb5280aaeb0f98c6bbb38..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/extensions/active_tab_permission_manager.h
|
| +++ /dev/null
|
| @@ -1,80 +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_EXTENSIONS_ACTIVE_TAB_PERMISSION_MANAGER_H_
|
| -#define CHROME_BROWSER_EXTENSIONS_ACTIVE_TAB_PERMISSION_MANAGER_H_
|
| -
|
| -#include <set>
|
| -#include <string>
|
| -
|
| -#include "chrome/common/extensions/extension_set.h"
|
| -#include "chrome/common/extensions/url_pattern_set.h"
|
| -#include "content/public/browser/notification_observer.h"
|
| -#include "content/public/browser/notification_registrar.h"
|
| -#include "content/public/browser/web_contents_observer.h"
|
| -
|
| -class Profile;
|
| -
|
| -namespace content {
|
| -class WebContents;
|
| -}
|
| -
|
| -namespace extensions {
|
| -
|
| -class Extension;
|
| -
|
| -// Responsible for granting and revoking tab-specific permissions to extensions
|
| -// with the activeTab permission.
|
| -class ActiveTabPermissionManager : public content::WebContentsObserver,
|
| - public content::NotificationObserver {
|
| - public:
|
| - ActiveTabPermissionManager(content::WebContents* web_contents,
|
| - int tab_id,
|
| - Profile* profile);
|
| - virtual ~ActiveTabPermissionManager();
|
| -
|
| - // If |extension| has the activeTab permission, grants tab-specific
|
| - // permissions to it until the next page navigation or refresh.
|
| - void GrantIfRequested(const Extension* extension);
|
| -
|
| - // Returns true if |extension| has been granted tab-specific permissions
|
| - // for this tab.
|
| - bool IsGranted(const Extension* extension);
|
| -
|
| - private:
|
| - // content::WebContentsObserver implementation.
|
| - virtual void DidNavigateMainFrame(
|
| - const content::LoadCommittedDetails& details,
|
| - const content::FrameNavigateParams& params) OVERRIDE;
|
| - virtual void WebContentsDestroyed(content::WebContents* web_contents)
|
| - OVERRIDE;
|
| -
|
| - // content::NotificationObserver implementation.
|
| - virtual void Observe(int type,
|
| - const content::NotificationSource& source,
|
| - const content::NotificationDetails& details) OVERRIDE;
|
| -
|
| - // Clears any tab-specific permissions for all extensions on |tab_id_| and
|
| - // notifies renderers.
|
| - void ClearActiveExtensionsAndNotify();
|
| -
|
| - // Gets the current page id.
|
| - int32 GetPageID();
|
| -
|
| - // The tab ID for this tab.
|
| - int tab_id_;
|
| -
|
| - // Extensions with the activeTab permission that have been granted
|
| - // tab-specific permissions until the next navigation/refresh.
|
| - ExtensionSet granted_extensions_;
|
| -
|
| - // Listen to extension unloaded notifications.
|
| - content::NotificationRegistrar registrar_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(ActiveTabPermissionManager);
|
| -};
|
| -
|
| -} // namespace extensions
|
| -
|
| -#endif // CHROME_BROWSER_EXTENSIONS_ACTIVE_TAB_PERMISSION_MANAGER_H_
|
|
|