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

Unified Diff: chrome/browser/search/instant_io_context.h

Issue 15907006: Rip out browser-side RID caching for most visited items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/search/instant_io_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/instant_io_context.h
diff --git a/chrome/browser/search/instant_io_context.h b/chrome/browser/search/instant_io_context.h
index d061fa8859ed9b0ea3c7a5212738a52e6c2c79aa..325a3956b88ced3fb636267bcca48d8387a2b307 100644
--- a/chrome/browser/search/instant_io_context.h
+++ b/chrome/browser/search/instant_io_context.h
@@ -5,13 +5,10 @@
#ifndef CHROME_BROWSER_SEARCH_INSTANT_IO_CONTEXT_H_
#define CHROME_BROWSER_SEARCH_INSTANT_IO_CONTEXT_H_
-#include <map>
#include <set>
-#include <vector>
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
-#include "chrome/common/instant_restricted_id_cache.h"
class GURL;
@@ -51,22 +48,10 @@ class InstantIOContext : public base::RefCountedThreadSafe<InstantIOContext> {
static void ClearInstantProcessesOnIO(
scoped_refptr<InstantIOContext> instant_io_context);
- // Associates the |most_visited_item_id| with the |url|.
- static void AddMostVisitedItemsOnIO(
- scoped_refptr<InstantIOContext> instant_io_context,
- std::vector<InstantMostVisitedItemIDPair> items);
-
// Determine if this chrome-search: request is coming from an Instant render
// process.
static bool ShouldServiceRequest(const net::URLRequest* request);
- // If there is a mapping for the |most_visited_item_id|, sets |url| and
- // returns true.
- static bool GetURLForMostVisitedItemID(
- const net::URLRequest* request,
- InstantRestrictedID most_visited_item_id,
- GURL* url);
-
protected:
virtual ~InstantIOContext();
@@ -77,18 +62,11 @@ class InstantIOContext : public base::RefCountedThreadSafe<InstantIOContext> {
// |process_ids_|.
bool IsInstantProcess(int process_id) const;
- bool GetURLForMostVisitedItemID(InstantRestrictedID most_visited_item_id,
- GURL* url) const;
-
// The process IDs associated with Instant processes. Mirror of the process
// IDs in InstantService. Duplicated here for synchronous access on the IO
// thread.
std::set<int> process_ids_;
- // The Most Visited item cache. Mirror of the Most Visited item cache in
- // InstantService. Duplicated here for synchronous access on the IO thread.
- InstantRestrictedIDCache<InstantMostVisitedItem> most_visited_item_cache_;
-
DISALLOW_COPY_AND_ASSIGN(InstantIOContext);
};
« no previous file with comments | « no previous file | chrome/browser/search/instant_io_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698