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

Unified Diff: content/common_child/indexed_db/proxy_webidbcursor_impl.h

Issue 16325022: move content/common_child to content/child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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: content/common_child/indexed_db/proxy_webidbcursor_impl.h
diff --git a/content/common_child/indexed_db/proxy_webidbcursor_impl.h b/content/common_child/indexed_db/proxy_webidbcursor_impl.h
deleted file mode 100644
index ce529d8c90d7de38d482baf21826885e471ca264..0000000000000000000000000000000000000000
--- a/content/common_child/indexed_db/proxy_webidbcursor_impl.h
+++ /dev/null
@@ -1,71 +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 CONTENT_COMMON_CHILD_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_
-#define CONTENT_COMMON_CHILD_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_
-
-#include <deque>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/gtest_prod_util.h"
-#include "content/common/content_export.h"
-#include "content/common/indexed_db/indexed_db_key.h"
-#include "third_party/WebKit/public/platform/WebData.h"
-#include "third_party/WebKit/public/platform/WebIDBCallbacks.h"
-#include "third_party/WebKit/public/platform/WebIDBCursor.h"
-#include "third_party/WebKit/public/platform/WebIDBKey.h"
-
-namespace content {
-
-class CONTENT_EXPORT RendererWebIDBCursorImpl
- : NON_EXPORTED_BASE(public WebKit::WebIDBCursor) {
- public:
- explicit RendererWebIDBCursorImpl(int32 ipc_cursor_id);
- virtual ~RendererWebIDBCursorImpl();
-
- virtual void advance(unsigned long count, WebKit::WebIDBCallbacks* callback);
- virtual void continueFunction(const WebKit::WebIDBKey& key,
- WebKit::WebIDBCallbacks* callback);
- virtual void postSuccessHandlerCallback();
-
- void SetPrefetchData(const std::vector<IndexedDBKey>& keys,
- const std::vector<IndexedDBKey>& primary_keys,
- const std::vector<WebKit::WebData>& values);
-
- void CachedContinue(WebKit::WebIDBCallbacks* callbacks);
- void ResetPrefetchCache();
-
- private:
- FRIEND_TEST_ALL_PREFIXES(RendererWebIDBCursorImplTest, PrefetchTest);
-
- int32 ipc_cursor_id_;
-
- // Prefetch cache.
- std::deque<IndexedDBKey> prefetch_keys_;
- std::deque<IndexedDBKey> prefetch_primary_keys_;
- std::deque<WebKit::WebData> prefetch_values_;
-
- // Number of continue calls that would qualify for a pre-fetch.
- int continue_count_;
-
- // Number of items used from the last prefetch.
- int used_prefetches_;
-
- // Number of onsuccess handlers we are waiting for.
- int pending_onsuccess_callbacks_;
-
- // Number of items to request in next prefetch.
- int prefetch_amount_;
-
- enum { kInvalidCursorId = -1 };
- enum { kPrefetchContinueThreshold = 2 };
- enum { kMinPrefetchAmount = 5 };
- enum { kMaxPrefetchAmount = 100 };
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_CHILD_INDEXED_DB_PROXY_WEBIDBCURSOR_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698